PHP code example of mawuekom / laravel-passauth

1. Go to this page and download the library: Download mawuekom/laravel-passauth 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/ */

    

mawuekom / laravel-passauth example snippets


'providers' => [

    ...

    Mawuekom\Passauth\PassauthServiceProvider::class,

],



/*
 * You can place your custom package configuration in here.
 */
return [
    /*
    |--------------------------------------------------------------------------
    | Users feature settings
    |--------------------------------------------------------------------------
    */

    'user' => [
        'model'             => App\Models\User::class,
        'name'              => 'User',
        'resource_name'     => 'user',

        'table'     => [
            'name'          => env('PASSAUTH_USERS_DATABASE_TABLE', 'users'),
            'primary_key'   => env('PASSAUTH_USERS_DATABASE_TABLE_PRIMARY_KEY', 'id'),
        ],
    ],

    /*
    |--------------------------------------------------------------------------
    | Password history config
    |--------------------------------------------------------------------------
    */
    'password_history' => [
        'enable'            => true,
        'checker'           => false,
        'number_to_check'   => 3,
    ],

    /*
    |--------------------------------------------------------------------------
    | Required identifiants
    |--------------------------------------------------------------------------
    */

    '
bash
php artisan vendor:publish --provider="Mawuekom\Passauth\PassauthServiceProvider"
bash
php artisan vendor:publish --provider="Mawuekom\Passauth\PassauthServiceProvider" --tag="config"