diff --git a/app/Http/Controllers/CityOpinionController.php b/app/Http/Controllers/CityOpinionController.php index 8ca3f15d..82673821 100644 --- a/app/Http/Controllers/CityOpinionController.php +++ b/app/Http/Controllers/CityOpinionController.php @@ -18,9 +18,7 @@ public function store(CityOpinionRequest $request): void public function update(CityOpinionRequest $request, CityOpinion $cityOpinion): void { - $request->user() - ->cityOpinions() - ->update($request->validated()); + $cityOpinion->update($request->validated()); } public function destroy(CityOpinion $cityOpinion): void