PHP code example of lornequinn / auth-monorepo

1. Go to this page and download the library: Download lornequinn/auth-monorepo library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

lornequinn / auth-monorepo example snippets


use Illuminate\Contracts\Auth\MustVerifyEmail;

class User extends Authenticatable implements MustVerifyEmail
{
    // ...
}

use Laravel\Fortify\TwoFactorAuthenticatable;

class User extends Authenticatable implements MustVerifyEmail
{
    use TwoFactorAuthenticatable;
}

'guest_layout' => 'lq-auth::layouts.guest',
'app_layout' => 'lq-auth::layouts.app',

'features' => [
    'registration' => true,
    'reset-passwords' => true,
    'email-verification' => true,
    'update-profile-information' => true,
    'update-passwords' => true,
    'two-factor-authentication' => true,
],

'home' => '/dashboard',

'middleware' => ['web', 'auth', 'verified'],

'actions' => [
    'create_user' => App\Actions\CreateNewUser::class,
    'update_profile' => null, // null = use package default
    'update_password' => null,
    'reset_password' => null,
],
bash
php artisan vendor:publish --tag=lq-auth-config
bash
php artisan migrate
bash
php artisan vendor:publish --tag=lq-auth-views