This is a package for Laravel Nova which allows you to easily reset your nova password.
- PHP >= 7.1
- Laravel application with Laravel Nova installed
Install the package via composer:
$ composer require mastani/nova-password-reset
Publish the view (Will overwrite 'user.blade.php' which is provided by nova):
php artisan vendor:publish --force --provider="Mastani\NovaPasswordReset\ToolServiceProvider" --tag="nova-views"
Register the tool in the tools
method of the NovaServiceProvider
:
// app/Providers/NovaServiceProvider.php
// ...
public function tools()
{
return [
// ...
new \Mastani\NovaPasswordReset\NovaPasswordReset,
];
}
If you want to specify the min length of password you can publish the config file:
php artisan vendor:publish --provider="Mastani\NovaPasswordReset\ToolServiceProvider" --tag="config"
Now head over to "config/nova-password-reset.php" and you can change the value:
'min_password_size' => 5
You can also use English or Portuguese language or add your own translation:
php artisan vendor:publish --provider="Mastani\NovaPasswordReset\ToolServiceProvider" --tag="translations"
The MIT License (MIT). Please see License File for more information.