PHP code example of josegus / laravel-quick-login

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

    

josegus / laravel-quick-login example snippets


return [
    'model' => \App\Models\User::class,

    'displayed_attribute' => 'email',

    'redirect_to' => env('QUICK_LOGIN_REDIRECT_TO', 'dashboard'),
];

// config/quick-login.php
return [
    'displayed_attribute' => 'username',
];
bash
php artisan vendor:publish --tag="quick-login-config"
bash
php artisan vendor:publish --tag="quick-login-views"