| 1 | <?php namespace Arcanesoft\Auth\Models; |
||
| 13 | class User extends BaseUserModel |
||
| 14 | { |
||
| 15 | /* ------------------------------------------------------------------------------------------------ |
||
| 16 | | Getters & Setters |
||
| 17 | | ------------------------------------------------------------------------------------------------ |
||
| 18 | */ |
||
| 19 | /** |
||
| 20 | * Get the user hash id. |
||
| 21 | * |
||
| 22 | * @return string |
||
| 23 | */ |
||
| 24 | public function getHashedIdAttribute() |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Get the gravatar attribute. |
||
| 31 | * |
||
| 32 | * @return string |
||
| 33 | */ |
||
| 34 | public function getGravatarAttribute() |
||
| 40 | |||
| 41 | /* ------------------------------------------------------------------------------------------------ |
||
| 42 | | Main Function |
||
| 43 | | ------------------------------------------------------------------------------------------------ |
||
| 44 | */ |
||
| 45 | /** |
||
| 46 | * Get a user from a hashed id or fail if not found. |
||
| 47 | * |
||
| 48 | * @param string $hashedId |
||
| 49 | * |
||
| 50 | * @return self |
||
| 51 | * |
||
| 52 | * @throws \Illuminate\Database\Eloquent\ModelNotFoundException |
||
| 53 | */ |
||
| 54 | public static function firstHashedOrFail($hashedId) |
||
| 60 | } |
||
| 61 |