Social Login: Using Socialite to Sign In with Facebook/Google
Founder of QuickAdminPanel
New function in QuickAdminPanel is ability for your users to login via social network – Facebook or Google. Here’s how it works.
First, you install a module called Social login:
Nothing changes in online version of your panel, but after download you will see two new buttons on your login screen:
For this thing to work, you need to enter your social application credentials in .env file, we provide those variables for you in .env.example:
GOOGLE_CLIENT_ID= GOOGLE_CLIENT_SECRET= FACEBOOK_CLIENT_ID= FACEBOOK_CLIENT_SECRET=
We’re using default Laravel Socialite for this function, so no other external dependency is needed.
Notice: we allow already registered users to log in via social network, but not register via Facebook/Google, cause our generator wouldn’t know what role to assign to those new users.
As usual, try it out at QuickAdminPanel.com