mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange.git
synced 2026-08-19 12:24:09 +00:00
added vue time ago component
added custom field for booking updated notification updated fetch notification on frontend
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user