[英]Resetting passwords out of the box on Laravel project with database provider: “user must implement canresetpassword interface”
[英]User must implement CanResetPassword interface. Password Reset Laravel 5.4
password reset issue
User.php
namespace App;
use Eloquent;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Contracts\Auth\Authenticatable;
use Illuminate\Auth\Authenticatable as AuthenticableTrait;
類User擴展口才實施Authenticateable {use AuthenticableTrait;
將接口CanResetPassword添加到您的User類:
// at the top of the file
use Illuminate\Auth\Passwords\CanResetPassword;
// at the class declaration
class User extends Eloquent implements Authenticatable, CanResetPassword
{
// ...
}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.