Questions tagged as 'laravel'

2
answers

Pass data from a blade to the JS

I'm using Laravel and I have a blade with the variable: {{$project->slug}} On the blade I also have a button with which I want to open a new window, but as I have different projects it has to be 'dynamic'. The code of the button is as...
asked by 27.10.2017 / 13:00
1
answer

CSS Laravel Bootstrap 4

I have problems with this new version and I have some things that if you are collecting the Bootstrap4 and others not. For example, you are not able to teach these icons: <a href="#" class="btn btn-danger"> <i class="fa fa-c...
asked by 31.08.2017 / 11:15
1
answer

Laravel-blade- @ extends does not work and missing snippet?

I have a problem with @extends, it does not activate, it goes blank when I make the request for the route: Route::get('/demos', function () { return view('demo'); }); I get the following error:    (2/2) ErrorException Can not end a s...
asked by 07.08.2017 / 23:24
1
answer

Send several input with the same name or id - Laravel Ajax

I want to send several input values that have the same name through a POST with Ajax. I do not know if you let me understand, but what I want is to create a detail of purchases. My form is as follows: <form class="form-horizontal" role="...
asked by 26.09.2017 / 04:29
3
answers

Error executing php artisan command

When executing the php artisan command within my project in laravel, it gives me this error: PHP Warning: require(/root/blog/bootstrap/../vendor/autoload.php): failed to open stream: No such file or directory in /root/blog/bootstrap/autoload....
asked by 18.08.2017 / 19:51
1
answer

laravel send data from a table to a modal window

I am using Laravel 5.4 with a database in MariaDB , and for the frontend I use the Materialize.css framework and now as well says the title, I have a table with user records. And the table is filled with the following laravel code. <ta...
asked by 22.05.2017 / 23:47
1
answer

Middleware Laravel and Vue js

I integrated Laravel and Vue everything that is in vue js begins with the route link the / # / is added, I am having problems so that I can recognize laravel middleware in vue, I use: Route::group(['middleware'=>'auth'], function () {...
asked by 04.04.2017 / 17:02
2
answers

Duda View Composer and View Creator Laravel 5

Using laravel 5.2 I have two views: principal.blade : <!DOCTYPE html> <html> <head> <title>@yield('meta_title', $meta_title)</title> </head> <body> <div id="main"&...
asked by 31.01.2017 / 14:49
2
answers

Articles search by category Laravel 5.3

Good evening, I'm trying to get the categories and their respective articles. I would like the name of the category to appear in the view as a title and then each of your articles appear: For example: COMPUTATION: keyboard, mouse, laptop...
asked by 24.02.2017 / 03:58
2
answers

belongsTo error in AppServiceProvider

I have an error in the belongsTo relationship in the welcome view, the error is the following: "Undefined property: stdClass::$work (View: ...\views\welcome.blade.php)" I recover the data from the query made in AppServiceProvider since it i...
asked by 26.11.2017 / 21:34