Type error: Argument 1 passed to Illuminate\Auth\EloquentUserProvider::validateCredentials() must

分析 :是继承出错了

//错误代码
<?php

namespace App;

use App\Model;
use Illuminate\Foundation\Auth\User as Authenticatable;
class User extends Model
{

    protected $fillable = [
        'name', 'email', 'password',
    ];


}

 

 

//正确代码

<?php

namespace App;

use App\Model;
use Illuminate\Foundation\Auth\User as Authenticatable;
class User extends Authenticatable
{

    protected $fillable = [
        'name', 'email', 'password',
    ];


}
上一篇:laravel踩坑记:空字符转null


下一篇:spark-submit报错:Application application_1529650293575_0148 finished with failed status