From 75377126d2e4d734c84679e59ba18c2a84fef081 Mon Sep 17 00:00:00 2001 From: Benjamin Takats Date: Sun, 15 Jan 2023 21:27:40 +0100 Subject: [PATCH] save --- app/Http/Livewire/BookCase/CommentBookCase.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Livewire/BookCase/CommentBookCase.php b/app/Http/Livewire/BookCase/CommentBookCase.php index 8fa181b3..7e3ce867 100644 --- a/app/Http/Livewire/BookCase/CommentBookCase.php +++ b/app/Http/Livewire/BookCase/CommentBookCase.php @@ -43,7 +43,7 @@ class CommentBookCase extends Component ->addMedia($this->photo) ->toMediaCollection('images'); - return to_route('bookCases.comment.bookcase', ['bookCase' => $this->bookCase->id]); + return to_route('bookCases.comment.bookcase', ['country' => $this->country, 'bookCase' => $this->bookCase->id]); } public function deletePhoto($id) @@ -51,7 +51,7 @@ class CommentBookCase extends Component Media::find($id) ->delete(); - return to_route('bookCases.comment.bookcase', ['bookCase' => $this->bookCase->id]); + return to_route('bookCases.comment.bookcase', ['country' => $this->country, 'bookCase' => $this->bookCase->id]); } protected function url_to_absolute($url)