more fixes
This commit is contained in:
@@ -48,7 +48,7 @@ class NotificationController extends Controller
|
||||
|
||||
public function readAll(Request $request): JsonResponse
|
||||
{
|
||||
$request->user()->unreadNotifications->markAsRead();
|
||||
$request->user()->unreadNotifications()->update(['read_at' => now()]);
|
||||
return response()->json(['message' => 'All notifications marked as read.']);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user