This commit is contained in:
f4ilji
2024-11-07 16:11:35 +05:00
parent f01fecf1e6
commit fbea6ecd48
29 changed files with 578 additions and 89 deletions
@@ -18,9 +18,9 @@ class ClientVirtualExhibitionController extends Controller
return Inertia::render('Client/Library-exhibitions/Index', compact('exhibitions'));
}
public function show(string $id)
public function show(string $slug)
{
$exhibition = new ClientVirtualExhibitionListResource(VirtualExhibition::query()->find($id));
$exhibition = new ClientVirtualExhibitionListResource(VirtualExhibition::query()->where('slug', $slug)->firstOrFail());
return Inertia::render('Client/Library-exhibitions/Show', compact('exhibition'));
}
}