laravel管理员表中的模型

<?php

namespace App;
use AppModel;
use IlluminateFoundationAuthUser as Authenticatable;

class User extends Authenticatable
{
    protected $fillable=[
        'name','email','password'
    ];
}

  

IlluminateFoundationAuthUser
<?php

namespace IlluminateFoundationAuth;

use IlluminateAuthAuthenticatable;
use IlluminateDatabaseEloquentModel;
use IlluminateAuthPasswordsCanResetPassword;
use IlluminateFoundationAuthAccessAuthorizable;
use IlluminateContractsAuthAuthenticatable as AuthenticatableContract;
use IlluminateContractsAuthAccessAuthorizable as AuthorizableContract;
use IlluminateContractsAuthCanResetPassword as CanResetPasswordContract;

class User extends Model implements
    AuthenticatableContract,
    AuthorizableContract,
    CanResetPasswordContract
{
    use Authenticatable, Authorizable, CanResetPassword;
}

  

原文地址:https://www.cnblogs.com/yiweiyihang/p/8648418.html