Download the PHP package mei-labs/filament-renew-password without Composer
On this page you can find all versions of the php package mei-labs/filament-renew-password. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package filament-renew-password
Filament Renew Password Plugin
The Filament Renew Password Plugin enhances Filament by prompting users to renew their passwords based on specified criteria.
Installation
-
Install the package using the composer command:
- Publish the associated vendor files and run the migration, which adds a new column
last_renew_password_at
to the users table.
Alternatively, if you don't want to publish the migrations or already have a column in your database for such case, you can skip this step and customize the column name by using any of the configuration methods described in the Configuration section below.
- Register the plugin in your panel provider:
Configuration
Filament Renew Password Plugin is designed to work out of the box with minimal configuration. However, you can customize the plugin by publishing the configuration file, changing the environment variables or using the plugin object to override the default settings.
Via Plugin Configuration
Via Environment Variables
Via Configuration File
Any of the above methods will work. The plugin will use the configuration in the following order of priority: Plugin Configuration, Environment Variables, Configuration File.
Usage
- Implement the
RenewPasswordContract
on your Authentication Model (User) and define the criteria for prompting password renewal in theneedRenewPassword
function.
Example for a 90-day renewal period:
Alternatively, you can use the RenewPassword
trait on your Authentication Model (User). By default, the trait uses the configured column and a 90-day renewal period. You can customize the column name and renewal period by configuring the plugin.
All versions of filament-renew-password with dependencies
spatie/laravel-package-tools Version ^1.16
illuminate/contracts Version ^10.0 || ^11.0
illuminate/validation Version ^10.0 || ^11.0
illuminate/support Version ^10.0 || ^11.0
filament/filament Version ^3.0