invisnik / laravel-steam-auth

Laravel Steam Auth
MIT License
172 stars 67 forks source link

How to setup laravel-steam-auth in Laravel 5.4? #50

Closed MiloslavKrejza closed 7 years ago

MiloslavKrejza commented 7 years ago

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.

MiloslavKrejza commented 7 years ago

I do not have AuthController under /Auth folder, what shall i do?

bizzlebazzle commented 7 years ago

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!