Setup Social Login Google
Create Google App
In this step we need google client id and secret that way we can get information of other user. so if you don't have google app account then you can create from here : Google Developers Console. you can find bellow screen :
Now you have to click on Credentials and choose first option oAuth and click Create new Client ID button. now you can see following slide:



after create account you can copy client id and secret.
Now you have to set app id, secret and call back url in config file so open config/services.php and set id and secret this way:
config/services.php
return [
....
....
....
'google' => [
'client_id' => 'Google app id',
'client_secret' => 'google add secret',
'redirect' => 'https://domain.com/google/callback',
],
]
Setup Social Login facebook
Add Facebook App ID and Secret
In order to login with Facebook, we need to create a Facebook app that you can do by going to Facebook Developer.
After creating a Facebook app id and the secret app, register in the config/services file.
return [
....
....
....
'facebook' => [
'client_id' => 'Facebook app id',
'client_secret' => 'Facebook add secret',
'redirect' => 'https://domain.com/facebook/callback',
],
]
Setup Cron Job
Let’s setup the Cron Jobs to run automatically without initiating manually by running the command. To start the Laravel Scheduler itself, we only need to add one Cron job which executes every minute. Go to your terminal, ssh into your server, cd into your project and run this command.
crontab -e
This will open the server Crontab file, paste the code below into the file, save and then exit.
* * * * * cd /path-to-your-project && php artisan schedule:run >> /dev/null 2>&1
Do not forget to replace path-to-your-project with the full path to the Artisan command of your Laravel Application.