Closed MiloslavKrejza closed 7 years ago
I do not have AuthController under /Auth folder, what shall i do?
To generate the AuthController I ran
php artisan make:controller Auth/AuthController
From there you can paste the code from the README. I also added a logout function which was simply;
public function logout(){
Auth::logout();
return redirect('/');
}
For my routes file I then call these functions with;
Route::get('/login', 'AuthController@login');
Route::get('/logout', 'AuthController@logout');
Hope this helps you!
Hello, i would love to ask how can i setup this in Laravel 5.4 i am having problem with routes. And with Auth forled.