| 1 | <?php |
||
| 15 | class Permissions extends Model |
||
| 16 | { |
||
| 17 | protected $fillable = ['name', 'description', 'class', 'method']; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * Permissions constructor. |
||
| 21 | * |
||
| 22 | * @param array $attributes |
||
| 23 | */ |
||
| 24 | public function __construct(array $attributes = []) |
||
| 30 | |||
| 31 | |||
| 32 | /** |
||
| 33 | * Role relation setting |
||
| 34 | * |
||
| 35 | * @return \Illuminate\Database\Eloquent\Relations\BelongsToMany |
||
| 36 | */ |
||
| 37 | public function roles() |
||
| 41 | } |
||
| 42 |