Simplifies exposing Laravel's baked in Socialite functionality.
Include as a trait in app/Http/Controllers/Auth/AuthController.php.
use Broco\SocialiteLogin\Auth\AuthenticatesSocialiteLogin;
class AuthController extends Controller {
use AuthenticatesSocialiteLogin;
}
Optionally configure:
- socialite-login.userclass: The class to use as the application's user object.
- socialite-login.intended-redirect.success: Redirect url on login success.
- socialite-login.intended-redirect.failure: Redirect url on login failure.
- socialite-login.limit-access.*: Access rules (e.g. limit to email domain).
Inspiration Guide: https://www.codeanchor.net/blog/complete-laravel-socialite-tutorial/
Boilerplate: https://github.com/cviebrock/laravel5-package-template