50dc79bc8d
* Refactor and add importer to Installer module #443 * Refactor for finances to use in import * Import groups into roles * Formatting * Formatting * Add interface in installer for import * Notes about importing * Check for installer folder * Formatting * Fix pirep->user mapping * Unused import * Formatting
34 lines
567 B
PHP
34 lines
567 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Laratrust\Models\LaratrustRole;
|
|
|
|
/**
|
|
* @method static where(string $string, $group)
|
|
* @method static firstOrCreate(array $array, array $array1)
|
|
* @method static truncate()
|
|
*/
|
|
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',
|
|
];
|
|
}
|