FilamentF
Filament3y ago
3 replies
Vp

How to define panel route

How can I define panel route, I want to pass it like /posts/{slug} with route name
return $panel
  ->routes() // what should we pass here
Solution
Oh, I though my below code is wrong, but it's working..
->routes(function () {
    return Route::get('posts/{slug}', \App\Filament\App\Pages\PostDetail::class)->name('post');
})

I saw it on route:list
Was this page helpful?