PHP code example of minhk / filament-login-multiauth

1. Go to this page and download the library: Download minhk/filament-login-multiauth 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/ */

    

minhk / filament-login-multiauth example snippets


return [
    'table_name' => 'users',
    'username_column' => 'username',
    'model' => 'App\\Models\\User',
];

use Minhk\FilamentLoginMultiAuth\LoginMultiAuthPlugin;


public function panel(Panel $panel): Panel
{
    return $panel
        ->plugins([
            LoginMultiAuthPlugin::make(),
        ]);
}
bash
php artisan vendor:publish --tag="filament-login-multiauth-config"
bash
php artisan vendor:publish --tag="filament-login-multiauth-migrations"
php artisan migrate
bash
php artisan generate:username --all-user=true

or 

php artisan generate:username [email protected]