PHP code example of gabrielesbaiz / nova-password-toolkit
1. Go to this page and download the library: Download gabrielesbaiz/nova-password-toolkit 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/ */
gabrielesbaiz / nova-password-toolkit example snippets
// app/Providers/NovaServiceProvider.php
public function tools(): array
{
return [
new NovaPasswordToolkit,
];
}
use Laravel\Nova\Fields\Password;
Password::make(__('Password'), 'password')
->withPasswordSuggestion();
Password::make(__('Password'), 'password')
->withPasswordSuggestion(gallery: false, meter: true, target: 'password-input');
// Or the meter on its own.
Password::make(__('Password'), 'password')
->withPasswordStrengthMeter('password-input');
> ->help('Minimum eight characters.')->withPasswordSuggestion() // both
> ->withPasswordSuggestion()->help('Minimum eight characters.') // prose only
>