1 | <?php |
||
12 | class Role extends Model |
||
13 | { |
||
14 | use HasPermission; |
||
15 | |||
16 | /** |
||
17 | * The database table used by the model. |
||
18 | * |
||
19 | * @var string |
||
20 | */ |
||
21 | protected $table = 'roles'; |
||
22 | |||
23 | /** |
||
24 | * Fillable fields. |
||
25 | * |
||
26 | * @var array |
||
27 | */ |
||
28 | protected $fillable = ['name', 'slug', 'description', 'system']; |
||
29 | |||
30 | protected static function boot() |
||
42 | |||
43 | /** |
||
44 | * Roles can belong to many users. |
||
45 | * |
||
46 | * @return \Illuminate\Database\Eloquent\Model|\Illuminate\Database\Eloquent\Relations\BelongsToMany |
||
47 | */ |
||
48 | public function users() |
||
53 | } |
||
54 |