Answers for "Laravel Secured Password"

PHP
0

Laravel Secured Password

use Illuminate\Validation\Rules\Password;
 
$request->validate([
    'password' => ['required', Password::defaults()],
]);
Posted by: Guest on October-12-2021
0

Laravel Secured Password

use Illuminate\Validation\Rules\Password;
 
/**
 * Bootstrap any application services.
 *
 * @return void
 */
public function boot()
{
    Password::defaults(function () {
        return Password::min(8)
                       ->mixedCase()
                       ->uncompromised();
    });
}
Posted by: Guest on October-12-2021

Browse Popular Code Answers by Language