phpvms/app/Models/Role.php
Nabeel S 50dc79bc8d
Refactor and add importer to Installer module #443 (#444)
* 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
2019-11-27 09:19:20 -05:00

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',
];
}