WIP booking updated feature

This commit is contained in:
Jack Goh
2018-08-29 09:38:55 +08:00
parent 88d704b368
commit dfe092f89c
8 changed files with 60 additions and 11 deletions
+5
View File
@@ -21,4 +21,9 @@ class UserController extends Controller
$user = Auth::user();
return $user->loadMissing('notifications');
}
public function notifications()
{
return auth()->user()->unreadNotifications()->limit(5)->get()->toArray();
}
}