| 1 | <?php namespace Arcanedev\LaravelAuth\Models\Pivots; |
||
| 14 | class PermissionRole extends AbstractPivot |
||
| 15 | { |
||
| 16 | /* ----------------------------------------------------------------- |
||
| 17 | | Properties |
||
| 18 | | ----------------------------------------------------------------- |
||
| 19 | */ |
||
| 20 | /** |
||
| 21 | * The attributes that should be cast to native types. |
||
| 22 | * |
||
| 23 | * @var array |
||
| 24 | */ |
||
| 25 | protected $casts = [ |
||
| 26 | 'permission_id' => 'integer', |
||
| 27 | 'role_id' => 'integer', |
||
| 28 | ]; |
||
| 29 | |||
| 30 | /* ----------------------------------------------------------------- |
||
| 31 | | Getters & Setters |
||
| 32 | | ----------------------------------------------------------------- |
||
| 33 | */ |
||
| 34 | /** |
||
| 35 | * Get the observer class for the pivot table. |
||
| 36 | * |
||
| 37 | * @return string|null |
||
| 38 | */ |
||
| 39 | protected function getObserverClass() |
||
| 43 | } |
||
| 44 |