https://github.com/nestednet/socialite-wrapper
Laravel 5.7 socialite wrapper.
https://github.com/nestednet/socialite-wrapper
Last synced: 8 months ago
JSON representation
Laravel 5.7 socialite wrapper.
- Host: GitHub
- URL: https://github.com/nestednet/socialite-wrapper
- Owner: Nestednet
- License: mit
- Created: 2019-10-01T16:24:18.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-10-02T13:06:57.000Z (over 6 years ago)
- Last Synced: 2025-03-13T12:42:07.501Z (12 months ago)
- Language: PHP
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Laravel 5.7 Socialite Wrapper
Socialize implementation for your Laravel 5.7 project.
Awesome to use with Sentinel (and free social login option), Entrust or default Auth.
## Usage
### Step 1: Install Through Composer
```
composer require kneipp/socialite-wrapper
```
### Step 2: Add the Service Provider
Add the provider in `config/app.php`:
```php
Kneipp\SocialiteWrapper\SocialiteWrapperServiceProvider::class,
```
### Step 3: Almost done
- add keys in config/services.php:
```php
'facebook' => [
'client_id' => env('FACEBOOK_KEY'),
'client_secret' => env('FACEBOOK_SECRET'),
'redirect' => env('APP_URL') . '/callback/facebook',
],
'twitter' => [
'client_id' => env('TWITTER_KEY'),
'client_secret' => env('TWITTER_SECRET'),
'redirect' => env('APP_URL') . '/callback/twitter',
],
'google' => [
'client_id' => env('GOOGLE_KEY'),
'client_secret' => env('GOOGLE_SECRET'),
'redirect' => env('APP_URL') . '/callback/google',
],
'linkedin' => [
'client_id' => env('LINKEDIN_KEY'),
'client_secret' => env('LINKEDIN_SECRET'),
'redirect' => env('APP_URL') . '/callback/linkedin/',
],
```
- add .env file keys and check APP_URL value:
```
FACEBOOK_KEY=
FACEBOOK_SECRET=
TWITTER_KEY=
TWITTER_SECRET=
```
- Run:
```
php artisan vendor:publish --provider="Kneipp\SocialiteWrapper\SocialiteWrapperServiceProvider"
php artisan migrate
```
- Create your links in views/auth/login.blade.php for example:
```html
FB Login
Twitter Login
```