Skip to content

Laravel Lockout Account. Lock user account automaticaly if login fails with JSON.

License

Notifications You must be signed in to change notification settings

Eshan-Studio/lockout-account

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🔒 JSON Lockout Account for Laravel

Code Climate Scrutinizer Code Quality Build Status Support me Latest Stable Version PHP Composer Buy Me A Coffee

Logo

This package is useful for locking an account if someone tries to log into your account, this package can be implemented into the admin dashboard login, information system, cloud, etc.

🛠️ Installation with Composer

composer require irfa/lockout

You can get Composer here


🛠️ Laravel Setup

1. Add to config/app.php

'providers' => [
      	 ....
         Irfa\Lockout\LockoutAccountServiceProvider::class, 
     ];

2. Add to config/app.php

'aliases' => [
         ....
    	'Lockout' => Irfa\Lockout\Facades\Lockout::class,
],

3. Publish Vendor

php artisan vendor:publish --tag=lockout-account

Open .env file and add this line (optional)

....
LOGIN_ATTEMPS=3
LOGGING=true
    

Usage:

https://github.com/irfaardy/lockout-account/wiki/Usage

How to Contributing

  1. Fork it (https://github.com/irfaardy/lockout-account/fork)
  2. Commit your changes (git commit -m 'Add some Feature')
  3. Push to the branch (git push origin version)
  4. Create a new Pull Request

LICENSE
GitHub license

About

Laravel Lockout Account. Lock user account automaticaly if login fails with JSON.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%