Skip to content
This repository was archived by the owner on Mar 8, 2020. It is now read-only.

Commit b7dcddf

Browse files
committed
Update readme
1 parent 3c23749 commit b7dcddf

File tree

1 file changed

+47
-60
lines changed

1 file changed

+47
-60
lines changed

readme.md

Lines changed: 47 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -1,60 +1,47 @@
1-
<p align="center"><img src="https://laravel.com/assets/img/components/logo-laravel.svg"></p>
2-
3-
<p align="center">
4-
<a href="https://travis-ci.org/laravel/framework"><img src="https://travis-ci.org/laravel/framework.svg" alt="Build Status"></a>
5-
<a href="https://packagist.org/packages/laravel/framework"><img src="https://poser.pugx.org/laravel/framework/d/total.svg" alt="Total Downloads"></a>
6-
<a href="https://packagist.org/packages/laravel/framework"><img src="https://poser.pugx.org/laravel/framework/v/stable.svg" alt="Latest Stable Version"></a>
7-
<a href="https://packagist.org/packages/laravel/framework"><img src="https://poser.pugx.org/laravel/framework/license.svg" alt="License"></a>
8-
</p>
9-
10-
## About Laravel
11-
12-
Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel attempts to take the pain out of development by easing common tasks used in the majority of web projects, such as:
13-
14-
- [Simple, fast routing engine](https://laravel.com/docs/routing).
15-
- [Powerful dependency injection container](https://laravel.com/docs/container).
16-
- Multiple back-ends for [session](https://laravel.com/docs/session) and [cache](https://laravel.com/docs/cache) storage.
17-
- Expressive, intuitive [database ORM](https://laravel.com/docs/eloquent).
18-
- Database agnostic [schema migrations](https://laravel.com/docs/migrations).
19-
- [Robust background job processing](https://laravel.com/docs/queues).
20-
- [Real-time event broadcasting](https://laravel.com/docs/broadcasting).
21-
22-
Laravel is accessible, yet powerful, providing tools needed for large, robust applications.
23-
24-
## Learning Laravel
25-
26-
Laravel has the most extensive and thorough [documentation](https://laravel.com/docs) and video tutorial library of any modern web application framework, making it a breeze to get started learning the framework.
27-
28-
If you're not in the mood to read, [Laracasts](https://laracasts.com) contains over 1100 video tutorials on a range of topics including Laravel, modern PHP, unit testing, JavaScript, and more. Boost the skill level of yourself and your entire team by digging into our comprehensive video library.
29-
30-
## Laravel Sponsors
31-
32-
We would like to extend our thanks to the following sponsors for helping fund on-going Laravel development. If you are interested in becoming a sponsor, please visit the Laravel [Patreon page](https://patreon.com/taylorotwell):
33-
34-
- **[Vehikl](https://vehikl.com/)**
35-
- **[Tighten Co.](https://tighten.co)**
36-
- **[Kirschbaum Development Group](https://kirschbaumdevelopment.com)**
37-
- **[Cubet Techno Labs](https://cubettech.com)**
38-
- **[British Software Development](https://www.britishsoftware.co)**
39-
- [Fragrantica](https://www.fragrantica.com)
40-
- [SOFTonSOFA](https://softonsofa.com/)
41-
- [User10](https://user10.com)
42-
- [Soumettre.fr](https://soumettre.fr/)
43-
- [CodeBrisk](https://codebrisk.com)
44-
- [1Forge](https://1forge.com)
45-
- [TECPRESSO](https://tecpresso.co.jp/)
46-
- [Runtime Converter](http://runtimeconverter.com/)
47-
- [WebL'Agence](https://weblagence.com/)
48-
- [Invoice Ninja](https://www.invoiceninja.com)
49-
50-
## Contributing
51-
52-
Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the [Laravel documentation](https://laravel.com/docs/contributions).
53-
54-
## Security Vulnerabilities
55-
56-
If you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell via [[email protected]](mailto:[email protected]). All security vulnerabilities will be promptly addressed.
57-
58-
## License
59-
60-
The Laravel framework is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).
1+
# Laravel Socialite with Multiple Providers
2+
3+
> An example project that covers login with multiple social providers.
4+
5+
## Setup
6+
Follow Laravel installation [steps](https://laravel.com/docs/5.6/installation#installation)
7+
8+
### What has been covered?
9+
* Login/Sign-up with Google and Github, you can add as many as you can.
10+
* Fire `RegisteredEvent` on new user creation same as default `RegistratonController`.
11+
* Create and associate social account when email address already exists.
12+
* Create user if email address does not exists in `users` table.
13+
14+
### What has not been covered?
15+
* Storing access token.
16+
* Storing user avatar.
17+
* Providers that does not return `email` address for example Facebook.
18+
* Allow users to change their email address.
19+
* Allow users to disconnect from their social account.
20+
* Allow logged-in users to connect to their social account.
21+
* Allow users to change their account password without knowing the current, because they have logged-in via socialite.
22+
23+
### How to add new provider?
24+
* Add provider name in routes `where()` method, for example - `twitter`
25+
```php
26+
->where('provider', 'google|github|twitter');
27+
```
28+
* Make room for new credentials in `config/services.php`
29+
```php
30+
'twitter' => [
31+
'client_id' => env('TWITTER_OAUTH_CLIENT_ID'),
32+
'client_secret' => env('TWITTER_OAUTH_CLIENT_SECRET'),
33+
'redirect' => env('TWITTER_OAUTH_REDIRECT'),
34+
],
35+
```
36+
* Update `.env.example` and `.env`
37+
```.dotenv
38+
# Twitter OAuth
39+
# https://developer.twitter.com
40+
TWITTER_OAUTH_CLIENT_ID=
41+
TWITTER_OAUTH_CLIENT_SECRET=
42+
TWITTER_OAUTH_REDIRECT=${APP_URL}/oauth/github/callback
43+
```
44+
* That's it. You are done.
45+
46+
### License
47+
Same as Laravel, [MIT license](https://opensource.org/licenses/MIT)

0 commit comments

Comments
 (0)