diff --git a/routes/web.php b/routes/web.php index b7ca46a..0fe8a37 100644 --- a/routes/web.php +++ b/routes/web.php @@ -13,8 +13,12 @@ Route::get('/{filamentFabricatorPage?}', function (?Page $filamentFabricatorPage = null) { // Handle root (home) page if (blank($filamentFabricatorPage)) { + $pageUrls = FilamentFabricator::getPageUrls(); + + $pageId = array_search('/', $pageUrls); + $filamentFabricatorPage = FilamentFabricator::getPageModel()::query() - ->where('slug', '/') + ->where('id', $pageId) ->firstOrFail(); }