Installation
ℹ️
This package can be used with PHP 8.0 and Laravel 9.0 or higher.
- Install the package via composer:
composer require yottahq/laravel-extended-auth- Optional: The service provider will automatically get registered. Or you may manually add the service provider in your config/app.php file:
'providers' => [
// ...
YottaHQ\LaravelExtendedAuth\LaravelExtendedAuthServiceProvider::class,
];- You can publish the package files using the following commands:
Configuration
php artisan vendor:publish --provider="YottaHQ\LaravelExtendedAuth\LaravelExtendedAuthServiceProvider" --tag=configMigrations
php artisan vendor:publish --provider="YottaHQ\LaravelExtendedAuth\LaravelExtendedAuthServiceProvider" --tag=migrationsRoutes
php artisan vendor:publish --provider="YottaHQ\LaravelExtendedAuth\LaravelExtendedAuthServiceProvider" --tag=routes⚠️
if you publish the package routes, you need to disable the auto route registration by adding this line to your
AppServiceProvider.php's register method
<?php
use YottaHQ\LaravelExtendedAuth\LaravelExtendedAuth;
public function register()
{
// ...
LaravelExtendedAuth::ignoreRoutes();
}- Clear your config and run the migrations:
php artisan config:clear
php artisan migrateLast updated on December 25, 2022