Closed valpuia closed 1 year ago
I'm not sure what you're trying to achieve exactly, but it seems like you should just register the route on the panel provider instead?
I'm not sure what you're trying to achieve exactly, but it seems like you should just register the route on the panel provider instead?
Yes, you're correct, after registering inside panel routes everything is working perfectly. Thank you
I'm not sure what you're trying to achieve exactly, but it seems like you should just register the route on the panel provider instead?
Yes, you're correct, after registering inside panel routes everything is working perfectly. Thank you
how did you registered the page route inside panel?
how did you registered the page route inside panel?
I've registered like below.. (this is still me (the author) but using company github ac)
return $panel
->routes(function () {
return [
Route::get('abc', \App\Filament\App\Pages\Abc::class)->name('abc'),
Route::get('...', ....),
];
})
thanks! ;)
Package
filament/filament
Package Version
3.0.60
Laravel Version
10.24
Livewire Version
3.0.5
PHP Version
8.2
Problem description
While using panel for landing page and provide render-hook for some customization. If you access pages from custom url then the render hook is gone. but if you access using filament auto-generated url then it's displaying correctly.
While investigating further, inside page from custom url then the primary color is also change, I think whatever configuration we create inside panelProviders is ignored
Inside dashboard (filament-url), primary color is violet.
But, inside custom-url, I just change the location, not others. The primary color is reverted to default primary (Ember(?))
Expected behavior
Use panel configuration while accessing from custom url also
Steps to reproduce
custom-url
in Dashboard to show another pages, and also button with primary color (RED)How to show this only happen in custom url
web.php
Reproduction repository
https://github.com/valpuia/render-hook-bug
Relevant log output
No response
Donate 💰 to fund this issue