sinkcup / laravel-ui-socialite
Automatically generate database, pages, and routes for Laravel Socialite
Installs: 377
Dependents: 0
Suggesters: 0
Security: 0
Stars: 17
Watchers: 3
Forks: 6
Open Issues: 11
Requires
- php: >=7.3
- doctrine/dbal: >=2.9
- laravel/framework: ^v8.1.0
- laravel/socialite: >=v4.4.1
- laravel/ui: >=v3.0.0
- phlak/semver: >=2.0
Requires (Dev)
- fzaninotto/faker: >=v1.9.1
- orchestra/testbench: ^v6.0.0
- phpunit/phpunit: ^9.3.8
- squizlabs/php_codesniffer: >=3.5.6
Suggests
- laravel-fans/socialite-providers: Providers for Laravel Socialite
This package is auto-updated.
Last update: 2020-09-12 15:19:23 UTC
README
Automatically generate database, pages, and routes for Laravel Socialite. Just like php artisan ui:auth
.
Login with multiple providers using the same email will be determined as one user.
When logged in, you can link all providers to the current user, and login with them next time.
Special handling for WeChat.
install
composer require laravel-fans/ui-socialite
php artisan ui vue
php artisan ui:auth
php artisan ui:socialite
php artisan vendor:publish --provider="LaravelFans\UiSocialite\UiSocialiteServiceProvider"
php artisan migrate
config
add to config/services.php
:
'github' => [
'client_id' => env('GITHUB_CLIENT_ID'),
'client_secret' => env('GITHUB_CLIENT_SECRET'),
'redirect' => env('GITHUB_CALLBACK_URL'),
'scopes' => env('GITHUB_SCOPES'), // optional
],
add to .env
:
AUTH_SOCIAL_LOGIN_PROVIDERS=Facebook,Twitter,Linkedin,Google,GitHub,GitLab,Bitbucket,wechat_web,wechat_service_account
GITHUB_CLIENT_ID=foo
GITHUB_CLIENT_SECRET=bar
GITHUB_CALLBACK_URL=http://127.0.0.1:8000/login/github/callback
GITHUB_SCOPES=user:email,public_repo
# disable password login
AUTH_PASSWORD_LOGIN_ENABLED=0
# disable register
AUTH_OPTIONS_REGISTER=0