Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Markdium-Laravel 8 - Integrate Jetstream + Socialite in 30 mins
# 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