| 1 | <?php |
||
| 7 | class UserRepository |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * Create a new user instance after a valid registration. |
||
| 11 | * |
||
| 12 | * @param array $data The data used to create the user. |
||
| 13 | * |
||
| 14 | * @return \Xetaravel\Models\User |
||
| 15 | */ |
||
| 16 | public static function create(array $data): User |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Find the notifications data for the notification sidebar. |
||
| 32 | * |
||
| 33 | * @param int $userId The id of the user. |
||
| 34 | * |
||
| 35 | * @return array |
||
| 36 | */ |
||
| 37 | public static function notificationsData($userId): array |
||
| 47 | } |
||
| 48 |