<?php
/**
 *------------------------------------------------------
 * AdminRoleModel.php
 *------------------------------------------------------
 *
 * @author    m@9026.com
 * @date      2017/03/20 11:43
 * @version   V1.0
 *
 */

namespace App\Models;

class AdminRoleModel extends BaseModel
{
    /**
     * 数据表名
     */
    protected $table = "admin_roles";

    /**
     * 主键
     */
    protected $primaryKey = "id";

    /**
     * 可以被集体附值的表的字段
     */
    protected $guarded = [];

    public static function getStartOptions()
    {
        return self::where('id', '>', 1)->where('status',1)->get()->toArray();
    }

}