This Repository discribe how to use Social authentication with Laravel's Official SocialLite Package. You can use your social logins as well.
Official Package -> `https://github.com/laravel/socialite`
-
Clone the repository and import it to your favorite IDE.
-
Run the fallowing Command.
composer install
-
Make a copy of
.env.example
and Rename it to.env
-
Run the fallowing Command
php artisan key:generate
-
Set Database credentials.
-
Add your Social Account's
CLIENT_SECRETS
Facebook
- Go to the 'https://developers.facebook.com' - Then, click `Create App` - Fill the `Display Name` & `Contact Email` then Click `Create App ID` button. - You can display a App Dashboard. click `Settings > Basic.` - Copy `App ID` & `App Secret` - Paste into the `.env` - then fill the app domain as 'localhost' - Save changes
GitHub
- Go to the https://github.com - Then go to the Settings > Developer settings. - Click OAuth Apps. - then click New OAuth App - Fill the details necessary - Register Application
-
Run fallowing Command.
php artisan migrate
-
Run your project using fallowing command.
php artisan serve --port=8081