Skip to content

Commit

Permalink
fix updating opinion
Browse files Browse the repository at this point in the history
  • Loading branch information
JakubKermes committed Apr 4, 2024
1 parent b595af8 commit 3eb3a97
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/Http/Controllers/CityOpinionController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3eb3a97

Please sign in to comment.