Installation

Installation

ℹ️

This package can be used with PHP 8.0 and Laravel 9.0 or higher.

  1. Install the package via composer:
composer require yottahq/laravel-extended-auth
  1. 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,
];
  1. You can publish the package files using the following commands:

Configuration

php artisan vendor:publish --provider="YottaHQ\LaravelExtendedAuth\LaravelExtendedAuthServiceProvider" --tag=config

Migrations

php artisan vendor:publish --provider="YottaHQ\LaravelExtendedAuth\LaravelExtendedAuthServiceProvider" --tag=migrations

Routes

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();
}
  1. Clear your config and run the migrations:
 php artisan config:clear
 php artisan migrate
Last updated on December 25, 2022