This package defines the basis of O365 login for all Packt Platforms
You can install the package via composer:
composer require packtdev/packt-auth
Publish and run the required migrations using:
php artisan vendor:publish --provider="Packt\PacktAuth\PacktAuthServiceProvider" --tag="packt-auth-migrations"
php artisan migrate
-
add the PacktAuthTrait to your User Model
-
Update your .env file to include:
AZURE_REDIRECT_URI=
AZURE_CLIENT_ID=
AZURE_CLIENT_SECRET= -
Add
@include('packt-auth::auth.azure')
to your login form -
You can override the default redirect by defining
$authRedirect
in your User model
Please see CHANGELOG for more information on what has changed recently.
The MIT License (MIT). Please see License File for more information.