phpvms/app/Models/Role.php

32 lines
477 B
PHP
Raw Normal View History

<?php
namespace App\Models;
2017-12-16 02:36:13 +08:00
use Laratrust\Models\LaratrustRole;
/**
* @method static where(string $string, $group)
*/
2017-12-16 02:36:13 +08:00
class Role extends LaratrustRole
{
protected $fillable = [
'id',
'name',
'display_name',
'read_only',
];
protected $casts = [
'read_only' => 'boolean',
];
/**
* Validation rules
*
* @var array
*/
public static $rules = [
'display_name' => 'required',
];
}