delete()){ return []; } } catch (QueryException|\Exception $exception){ dd($exception->getMessage()); throw new MalformedRequestException('Unable to update the record due to unexpected error'); } } }