Manage.php 503 字节
<?php

namespace App\Models;

class Manage extends Base
{
    //设置关联表名
    protected $table = 'gl_manage';

    protected $hidden = ['password'];

    const STATUS_ACTIVE = 0;
    const STATUS_DISABLE = 1;

    /**
     * 超级管理员ID, 当前ID拥有所有权限, 不能进行修改
     */
    const ADMINISTRATOR_ID = 1;

    public function statusMap(){
        return [
            self::STATUS_ACTIVE => '正常',
            self::STATUS_DISABLE => '禁用',
        ];
    }
}