Questions tagged as 'laravel-5'

1
answer

Laravel middleware

I have a question a bit silly, the question is that I am ready to create the filter by roles in Laravel, I have created a middleware for the filter of roles in the routes and up to here everything OK. The problem comes when I want to make thi...
asked by 10.07.2018 / 10:09
2
answers

Laravel - Blade templates get the POST response

I have a blade template that is a user creation form that calls a function of a controller that performs the user's insertion into the database. This driver has a code like this (the code works and the user is inserted into the DB) /**...
asked by 08.08.2018 / 09:58
1
answer

Laravel Error MethodNotAllowedHttpException

I'm doing a JWT login and at the time of testing the route I get an error:    MethodNotAllowedHttpException routes.php Route::group(['middleware'=>'cors'], function(){ Route::post('/auth_login', 'ApiAuthController@userAuth');...
asked by 21.06.2016 / 15:49
2
answers

how to pass parameter on the route from a controller in laravel?

I want to send a parameter in my route from my controller controller: public function guardarArticulo(Request $request){ $detalle_modelo = new DetalleModelo(); $detalle_modelo->idAutos = $request->idAutos; $d...
asked by 05.12.2017 / 17:54
2
answers

Laravel 5.5 Containers

In Laravel 5, when you create a model with resource controller and migration ( php artisan make:model Environment -mr ) you can notice that the methods are automatically generated in the controller. Now, if you look at each method creat...
asked by 04.12.2017 / 14:32
1
answer

Search for SIMILAR OR SIMILAR results in Laravel5.5 or MYSQL

Good morning everyone .. I'm doing a project in Laravel 5.5 and I have a question with a query to my database ... I have a table called CUTTER (the name does not matter much) that assigns a code depending on the similarity of a person's last n...
asked by 20.11.2017 / 19:56
1
answer

Upload heavy images to the server with DropZone and laravel

hi friends I'm working with Larvel 5.5 and Dropzone, the problem is this, DropZone does not allow me to upload images larger than 2MB, I proceed to change the property maxFilesize: 100 but it does not work, attached images of the code Vi...
asked by 05.11.2017 / 23:42
1
answer

problems with laravel 5.6

Good I have this problem with my project, I am using a dynamic navigation for the views between visiting and administrator, the moment to run laravel server the visitor view works perfectly, but when logging in as administrator, the application...
asked by 01.06.2018 / 16:53
1
answer

htmlentities () expects parameter 1 to be string, object given

I have a problem sending a query in a select it marks me the error htmlentities () expects parameter 1 to be string, object given My Controller is this: $works = ContractWork::get(); $year = DB:: table('contract_works')...
asked by 04.05.2016 / 02:40
1
answer

Login in laravel having a composite key

I have an application in laravel 5.1 with a composite key, most of the drivers worked fine, the problem is when I want to login it does not allow me to evaluate internally and does not allow having an array as the primary key ... there is some w...
asked by 14.05.2017 / 09:23