F
Filament15mo ago
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
return $panel
->routes() // what should we pass here
Solution:
Oh, I though my below code is wrong, but it's working.. ```php ->routes(function () { return Route::get('posts/{slug}', \App\Filament\App\Pages\PostDetail::class)->name('post'); })...
Jump to solution
1 Reply
Solution
Vp
Vp15mo ago
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');
})
->routes(function () {
return Route::get('posts/{slug}', \App\Filament\App\Pages\PostDetail::class)->name('post');
})
I saw it on route:list
Want results from more Discord servers?
Add your server