{"repo":"DirectoryTree/Bartender","free":true,"listed":false,"github":"https://github.com/DirectoryTree/Bartender","clone":"git clone https://github.com/DirectoryTree/Bartender.git","description":"An opinionated way to authenticate users using Laravel Socialite.","language":"PHP","stars":285,"topics":["laravel","oauth2","socialite"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"An opinionated way to authenticate users using Laravel Socialite. --- 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. Index - Requirements - Installation - Setup - Usage - Soft Deletes - Email Verification - Access/Refresh Tokens - Extending & Customizing Requirements - PHP = 8.0 - Laravel = 9.0 - Laravel Socialite = 5.0 Installation You can install the package via composer: Then, publish the migrations. They will create the required columns on the users table: - provider id - provider name - provider access token - provider 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.php migration. Finally, run the migrations: Setup Register the authentication routes using Bartender::routes() . This will register the /auth/{driver}/redirect and /auth/{driver}/callback routes. Set up any Socialite Providers you need, and update your services.php configuration file with the redirect URL for each provider: [!important] Remember to fully complete the installation steps for each Socialite Provider you wish to use. If you receive a Driver [X] not supported exception, you have not completed the installation steps for the provider. Finally, register the Socialite Provider in your AppServiceProvider using Bartender::serve() : If your application ","default_branch":null,"files":null,"tree":[],"storefront":"/r/DirectoryTree","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/DirectoryTree/Bartender/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}