Answer the question
In order to leave comments, you need to log in
Laravel 5 authorization not working?
I decided to switch from Angular to Laravel 5 again, and here it is ... I
wrote a simple authorization, in theory, everything works - it gives the data of the authorized user (via dd(Auth::user())), but after updating the page it disappears , as if not even authorized (
I read on the Toaster, they say it's about sessions and you need to use middleware web, but I use them, but there's no point.
Route:
Route::get('/', ['as' => 'index', 'uses' => '[email protected]']);
Route::group(['prefix' => 'auth'], function(){
Route::get('login', ['as' => 'auth.getLogin', 'uses' => 'Auth\[email protected]']);
Route::post('login', ['as' => 'auth.postLogin', 'uses' => 'Auth\[email protected]']);
Route::get('register', ['as' => 'auth.getRegister', 'uses' => 'Auth\[email protected]']);
});
Answer the question
In order to leave comments, you need to log in
Decided! My mistake was that I did not change the User model - I did not change the incoming data)
Check the permissions on the storage folder. Must be 777 or 755
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question