Trying to get property of non-object in VerifyCsrfToken.php (line 156) Laravel 5.4
I have a Shell Script that execute a route API in my Laravel Application. However, when it execute it, I have a error from Token.
Trying to get property of non-object
in VerifyCsrfToken.php (line 156)
The route is to http://localhost:8000/api/soap.
In SoapController, I redirect to other route inside to the application:
return redirect('/control_fich/'.$id_user.'/'.$date_utc);
The route is:
Route::get('control_fich/{id}/{date}','ControlFichController@index');
And I put this route how a except in the middleware VerifyCsrfToken.php
protected $except = [
'dropdown',
'control_fich/{id}/{date}',
];
But the error continues. What I have to do to execute an internal Controller from an API Controller?
Thanks
from Laravel Questions and Answers https://laravelquestions.com/php/trying-to-get-property-of-non-object-in-verifycsrftoken-php-line-156-laravel-5-4/
via Lzo Media
No comments:
Post a Comment