use uuid instead of id to delete notifications
This commit is contained in:
@@ -23,7 +23,7 @@ class NotificationsController extends Controller
|
||||
}
|
||||
}
|
||||
|
||||
public function deleteNotification(Request $request, int $notificationId): JsonResponse
|
||||
public function deleteNotification(Request $request, string $notificationId): JsonResponse
|
||||
{
|
||||
try {
|
||||
$notification = $request->user()->notifications()->findOrFail($notificationId);
|
||||
|
||||
Reference in New Issue
Block a user