| 1 | <?php namespace Arcanesoft\Auth\Models; |
||
| 13 | class PermissionsGroup extends BasePermissionsGroupModel |
||
| 14 | { |
||
| 15 | /* ------------------------------------------------------------------------------------------------ |
||
| 16 | | Getters & Setters |
||
| 17 | | ------------------------------------------------------------------------------------------------ |
||
| 18 | */ |
||
| 19 | /** |
||
| 20 | * Get the permissions group hash id. |
||
| 21 | * |
||
| 22 | * @return string |
||
| 23 | */ |
||
| 24 | public function getHashedIdAttribute() |
||
| 28 | |||
| 29 | /* ------------------------------------------------------------------------------------------------ |
||
| 30 | | Main Function |
||
| 31 | | ------------------------------------------------------------------------------------------------ |
||
| 32 | */ |
||
| 33 | /** |
||
| 34 | * Get a permission from a hashed id or fail if not found. |
||
| 35 | * |
||
| 36 | * @param string $hashedId |
||
| 37 | * |
||
| 38 | * @return self |
||
| 39 | * |
||
| 40 | * @throws \Illuminate\Database\Eloquent\ModelNotFoundException |
||
| 41 | */ |
||
| 42 | public static function firstHashedOrFail($hashedId) |
||
| 48 | } |
||
| 49 |