Skip to content

wuwx/laravel-socialite-neupass

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

laravel-socialite-neupass

composer require wuwx/laravel-socialite-neupass

<?php
use Laravel\Socialite\Facades\Socialite;
class LoginController extends Controller
{
    public function showLoginForm()
    {
        return redirect()->route("login.neupass");
    }
    public function redirectToProvider()
    {
        return Socialite::driver('neupass')
                        ->redirectUrl(request()->getUri() . "/callback")
                        ->redirect();
    }
    public function handleProviderCallback()
    {
        $user = Socialite::driver('neupass')->user();
    }
}
Route::get('login/neupass', 'Auth\LoginController@redirectToProvider')->name("login.neupass");
Route::get('login/neupass/callback', 'Auth\LoginController@handleProviderCallback')->name("login.neupass.callback");

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages