AdminUser.php 416 字节
Newer Older
init  
孙建华 已提交
1 2 3 4 5 6 7 8 9 10 11
<?php
/**
 * Date: 2019/2/25 Time: 10:34
 *
 * @author  Eddy <cumtsjh@163.com>
 * @version v1.0.0
 */

namespace App\Model\Admin;

use Illuminate\Foundation\Auth\User as Authenticatable;
孙建华 已提交
12
use Spatie\Permission\Traits\HasRoles;
init  
孙建华 已提交
13 14 15

class AdminUser extends Authenticatable
{
孙建华 已提交
16 17
    use HasRoles;

18 19 20 21
    const STATUS_ENABLE = 1;
    const STATUS_DISABLE = 0;

    protected $guarded = [];
孙建华 已提交
22 23

    protected $guard_name = 'admin';
init  
孙建华 已提交
24
}