| 1 | <?php namespace Arcanesoft\Auth\Models; |
||
| 11 | class Role extends BaseRoleModel |
||
| 12 | { |
||
| 13 | /* ------------------------------------------------------------------------------------------------ |
||
| 14 | | Getters & Setters |
||
| 15 | | ------------------------------------------------------------------------------------------------ |
||
| 16 | */ |
||
| 17 | /** |
||
| 18 | * Get the user hash id. |
||
| 19 | * |
||
| 20 | * @return string |
||
| 21 | */ |
||
| 22 | public function getHashedIdAttribute() |
||
| 26 | |||
| 27 | /* ------------------------------------------------------------------------------------------------ |
||
| 28 | | Main Function |
||
| 29 | | ------------------------------------------------------------------------------------------------ |
||
| 30 | */ |
||
| 31 | /** |
||
| 32 | * Get a user from a hashed id or fail if not found. |
||
| 33 | * |
||
| 34 | * @param string $hashedId |
||
| 35 | * |
||
| 36 | * @return self |
||
| 37 | * |
||
| 38 | * @throws \Illuminate\Database\Eloquent\ModelNotFoundException |
||
| 39 | */ |
||
| 40 | public static function firstHashedOrFail($hashedId) |
||
| 46 | } |
||
| 47 |