Download the PHP package larasoft/password-expirable without Composer
On this page you can find all versions of the php package larasoft/password-expirable. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download larasoft/password-expirable
More information about larasoft/password-expirable
Files in larasoft/password-expirable
Package password-expirable
Short Description It handles password expiry of users.
License MIT
Homepage https://github.com/fahad-larasoft/password-expirable
Informations about the package password-expirable
Password Expiry for Laravel 9.x | 10.x
Password Strength has following characteristics:
- It will allow your to set Expiry time of user password and send them reset emails.
- Version 1.0 for Laravel 5.1.x - 5.5.x
- Version 2.0 does support Laravel 9.x & 10.x
Install
Via Composer (v1.0)
Via Composer (v2.0)
You must include the service provider in config/app.php:
You need to migrate you database.
You can publish the config file with:
When published, the config/password-expiry.php
config file contains:
You can change it according to your needs.
Usage
-
Include Following trait in User Model
-
You can get the datetime Carbon instance of "when the current password was set on user object"
-
You can check if user password is expired?
- You can protect your routes from user with expired password by adding following middleware into your app/Http/Kernel.php and applying it onto your required routes. You can change the name 'check-password-expired' how you like.
Change log
Please see CHANGELOG for more information on what has changed recently.
Testing
Contributing
Please see CODE_OF_CONDUCT for details.
Security
If you discover any security related issues, please email :author_email instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.
All versions of password-expirable with dependencies
php Version ^8.0
schuppo/password-strength Version ~2.7