PHP code example of caesardev / laravel-login-command

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

    

caesardev / laravel-login-command example snippets


return [
    'expiration' => 60,

    'guard' => null,

    'redirect_url' => '/',

    'route_name' => 'login-link',

    'user_model' => 'App\\Models\\User',
];
bash
php artisan vendor:publish --tag="login-command-config"
bash
php artisan login:link 1
bash
php artisan login:link [email protected]
bash
php artisan login:link 1 --guard=admin
bash
php artisan login:link 1 --redirect=/dashboard
bash
php artisan login:link 1 --expires=120