芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/reginaeigbe.com/folder/admin/tmp/app/Http/Controllers/Frontend/PageController.php
getHomePageData(); return Inertia::render('Welcome', $data); } public function show($slug) { $page = Page::where('slug', $slug)->first(); if ($page) { switch ($page->slug) { case 'about': $data['about'] = $page; return Inertia::render('Page/AboutPage', $data); case 'faq': $data['faq'] = $page; return Inertia::render('Page/FaqPage', $data); case 'contact': $data['contact'] = $page; return Inertia::render('Page/ContactPage', $data); default: $data['page'] = $page; return Inertia::render('Page/Page', $data); } } abort(404); } }