phpvms/app/Models/Role.php
2019-06-20 16:52:37 -04:00

32 lines
477 B
PHP

<?php
namespace App\Models;
use Laratrust\Models\LaratrustRole;
/**
* @method static where(string $string, $group)
*/
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',
];
}