socialogin / google
Package of google login
Installs: 5
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/socialogin/google
Requires
- laravel/socialite: ^5.6
This package is auto-updated.
Last update: 2025-10-08 13:42:16 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')".