An opinionated way to authenticate users using Laravel Socialite.
Contents · Installation · Usage
Bartender serves you a controller, routes, and a default implementation for easily handling authentication with Laravel Socialite providers. Almost everything in Bartender can be customized.
- PHP >= 8.0
- Laravel >= 9.0
- Laravel Socialite >= 5.0
You can install the package via composer:
composer require directorytree/bartenderThen, publish the migrations. They will create the required columns on the users table:
provider_idprovider_nameprovider_access_tokenprovider_refresh_token
If your application does not need to store/access provider tokens, you may delete the
2024_10_27_131354_add_provider_token_columns_to_users_table.phpmigration.
php artisan vendor:publish --provider="DirectoryTree\Bartender\BartenderServiceProvider"Finally, run the migrations:
php artisan migrateRegister the authentication routes using Bartender::routes().
This will register the