wantsJson()) { return response()->json(['message' => 'Missing elements to perform the request'], 404); } return parent::render($request, $exception); } }