PHP code example of lamalama / laravel-login-attempts

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

    

lamalama / laravel-login-attempts example snippets


/**
 * The subscriber classes to register.
 *
 * @var array
 */
protected $subscribe = [
    'LamaLama\LoginAttempts\Listeners\AuthEventSubscriber',
];
bash
php artisan vendor:publish --provider="LamaLama\LoginAttempts\LoginAttemptsServiceProvider" --tag="migrations"
bash
php artisan migrate
bash
php artisan vendor:publish --provider="LamaLama\LoginAttempts\LoginAttemptsServiceProvider" --tag="config"
app/Providers/EventServiceProvider.php
bash
php artisan login-attempts:clear
bash
php artisan login-attempts:clear-failed
bash
php artisan login-attempts:clear-succeeded