php - 用户必须实现 CanResetPassword 接口。密码重置 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;
类用户扩展 Eloquent 实现 Authenticatable { 使用 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
{
// ...
}
推荐阅读
- snakemake - Snakemake 管道运行规则 1 的一个实例以生成多个文件,然后每个文件运行一个规则 2 实例
- sql - 显示以每个字符串的第一个字母开头的所有值,由任何分隔符分隔
- php - 如何根据特定的列值将多个值组合为一个?
- java - 返回通用结果
> - aws-lambda - 如何在 CloudFormation 模板中为无服务器 API 函数定义模型
- wordpress - 根据事件日期而不是发布日期显示文章
- java - 基于系统属性在 Spring Boot 应用程序中设置配置文件
- php - PHP setcookie 函数记住选择的背景和文本颜色
- python - 使用 Brython 在网页中嵌入可运行的 Python
- mysql - 比较 MySQL 中的两个 ISO 日期时间字符串