Created
October 23, 2020 06:01
-
-
Save andyyou/d2a502ffced3ddf47a26c61012a6f00e to your computer and use it in GitHub Desktop.
Markdium-Laravel 8 - Integrate Jetstream + Socialite in 30 mins
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 1. Create project | |
$ laravel new demo | |
# 2. Install jetstream with teams | |
$ composer require laravel/jetstream | |
$ php artisan jetstream:install inertia --teams | |
$ npm install && npm run dev | |
# (opt) For customize template you should publish these views | |
$ php artisan vendor:publish --tag=jetstream-views | |
# 3. Install socialite | |
$ composer require laravel/socialite | |
# (opt) If you meet memory limit error, place `COMPOSER_MEMORY_LIMIT=-1` before command | |
# $ COMPOSER_MEMORY_LIMIT=-1 composer require laravel/socialite | |
# 4. Modify database schema | |
# Create a database | |
# Edit .env for your database | |
$ composer require doctrine/dbal | |
$ php artisan make:migration edit_columns_in_users_table | |
# Modify migratation as below | |
$ php artisan migrate | |
# 5. Modify User model | |
# 6. Modify Fortify validation rules as follow | |
# 7. Add auth controller | |
$ php artisan make:controller Auth/LoginController | |
# 8. Modify routes | |
# 9. Modify config/services.php | |
# 10. Add button | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment