| 1 | <?php namespace jlourenco\base\Models; |
||
| 7 | class Group extends EloquentRole |
||
| 8 | { |
||
| 9 | |||
| 10 | /** |
||
| 11 | * {@inheritDoc} |
||
| 12 | */ |
||
| 13 | protected $table = 'Group'; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * {@inheritDoc} |
||
| 17 | */ |
||
| 18 | protected $fillable = [ |
||
| 19 | 'name', |
||
| 20 | 'slug', |
||
| 21 | 'permissions', |
||
| 22 | 'description', |
||
| 23 | ]; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * To allow soft deletes |
||
| 27 | */ |
||
| 28 | use SoftDeletes; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * To allow user actions identity (Created_by, Updated_by, Deleted_by) |
||
| 32 | */ |
||
| 33 | use Creation; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * The Users relationship. |
||
| 37 | * |
||
| 38 | * @return \Illuminate\Database\Eloquent\Relations\BelongsToMany |
||
| 39 | */ |
||
| 40 | public function users() |
||
| 44 | |||
| 45 | } |
||
| 46 |