simple google login and register using laravel if you find any issue's or bugs you can let me know
Setup the repository
git clone https://github.com/coswat/google-login.git
cd google-login
composer install
cp .env.example .env
php artisan key:generate
php artisan cache:clear && php artisan config:clear
php artisan serve
mysql;
create database laravel-google-login;
exit;
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=laravel-google-login
DB_USERNAME={USERNAME}
DB_PASSWORD={PASSWORD}
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET_ID=
Before you can use Laravel Socialite , you obviously need to make sure that you install it through Composer. Besides that, you should publish the socialite configuration file as well.
composer require laravel/socialite
'google' => [ 'client_id' => env('GOOGLE_CLIENT_ID'), 'client_secret' => env('GOOGLE_CLIENT_SECRET_ID'), 'redirect' => 'http://127.0.0.1:8085/auth/callback/google', ],
php artisan migrate