add readNotifications route and bruno's request
This commit is contained in:
@@ -40,7 +40,7 @@ class NotificationsController extends Controller
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function readNotifications(Request $request): JsonResponse {
|
public function readNotifications(Request $request): JsonResponse {
|
||||||
try {
|
try {
|
||||||
$user = $request->user();
|
$user = $request->user();
|
||||||
$notificationIds = $user->notifications()->pluck('notification_id');
|
$notificationIds = $user->notifications()->pluck('notification_id');
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user