📜  类必须声明为抽象或实现方法“hasVerifiedEmail” - 无论代码示例

📅  最后修改于: 2022-03-11 14:55:05.082000             🧑  作者: Mango

代码示例1
You need to either extend Illuminate\Foundation\Auth\User instead of 
Illuminate\Database\Eloquent\Model, or use Illuminate\Auth\Authenticatable 
trait in your class

You need to extend Illuminate\Foundation\Auth\User like this

use Illuminate\Foundation\Auth\User as Authenticatable;

class User extends Authenticatable
{

}