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