socialogin / google
There is no license information available for the latest version (1.0.0) of this package.
Package of google login
1.0.0
2023-04-08 07:15 UTC
Requires
- laravel/socialite: ^5.6
This package is auto-updated.
Last update: 2024-05-08 10:35:58 UTC
README
Installation
Require this package, with Composer, in the root directory of your project.
$ composer require socialogin/google
Add the service provider to config/app.php
in the providers
array.
Socailogin\Google\Providers\SocialLoginServiceProvider::class,
Configuration
Laravel requires connection configuration. To get started, you'll need to publish all vendor assets:
$ php artisan vendor:publish --provider="Socailogin\Google\Providers\SocialLoginServiceProvider"
You are free to change the configuration file as needed, but the default expected values are below in .env file:
GOOGLE_CLIENT_ID="your cllient key" GOOGLE_CLIENT_SECRET="your client secret id" REDIRECT_URL="Your redirct URL"
Add google_id column in Users table and google login button on login page and assign the route as "route('auth.google')".