小编Aga*_*tyo的帖子

重置密码 Laravel 上的验证器

我正在安装一个新的 Laravel 应用程序,长话短说,我得到了重置密码功能 php artisan make:auth

但是我需要将重置密码最小长度更改为 4,框架不允许我这样做。

我到目前为止的尝试

这是 ResetPasswordController.php

    class ResetPasswordController extends Controller
{
    /*
    |--------------------------------------------------------------------------
    | Password Reset Controller
    |--------------------------------------------------------------------------
    |
    | This controller is responsible for handling password reset requests
    | and uses a simple trait to include this behavior. You're free to
    | explore this trait and override any methods you wish to tweak.
    |
     */

    use ResetsPasswords;

    /**
     * Where to redirect users after resetting their password.
     *
     * @var string
     */
    protected $redirectTo …
Run Code Online (Sandbox Code Playgroud)

php laravel

5
推荐指数
1
解决办法
3000
查看次数

标签 统计

laravel ×1

php ×1