added vue time ago component

added custom field for booking updated notification
updated fetch notification on frontend
This commit is contained in:
Jack Goh
2018-08-30 16:04:14 +08:00
parent 8cfad4af99
commit d56f185c69
8 changed files with 2246 additions and 2056 deletions
+2 -1
View File
@@ -24,6 +24,7 @@ class UserController extends Controller
public function notifications()
{
return auth()->user()->unreadNotifications()->limit(5)->get()->toArray();
$notifications = auth()->user()->unreadNotifications()->limit(5)->get();
return response()->json(['notifications'=>$notifications], 200);
}
}