This commit is contained in:
Stefanescu Mihai
2026-03-18 12:18:07 +02:00
parent a4383337f4
commit 6ad100d331
12 changed files with 513 additions and 77 deletions
+3 -3
View File
@@ -31,11 +31,11 @@ class WebsiteController extends Controller
->with('success', 'Website added successfully.');
}
public function show(Website $website): View
public function show(Website $website): RedirectResponse
{
$this->authorize('view', $website);
return view('websites.show', compact('website'));
return redirect()->route('dashboard.show', $website);
}
public function edit(Website $website): View
@@ -54,7 +54,7 @@ class WebsiteController extends Controller
$website->update($data);
return redirect()
->route('websites.show', $website)
->route('dashboard.show', $website)
->with('success', 'Website updated successfully.');
}