Dennis Koch
Dennis Koch
FFilament
Created by Ric Le Poidevin on 5/8/2025 in #❓┊help
Moved resources to Admin folder and auto discovery is broken
Can you try running php artisan filament:optimize-clear, maybe something is cached.
5 replies
FFilament
Created by Marek on 5/8/2025 in #❓┊help
Route not found for Filament Resource Page
The Blade icon cache could help. See whether you notice a difference 😅
33 replies
FFilament
Created by Marek on 5/8/2025 in #❓┊help
Route not found for Filament Resource Page
There is artisan filament:optimize-clear to clear the Filament optimisations.
33 replies
FFilament
Created by Marek on 5/8/2025 in #❓┊help
Route not found for Filament Resource Page
optimize is the reverse and I think cache:clear doesn't work for the "Filament cache". That's why I'm asking
33 replies
FFilament
Created by Marek on 5/8/2025 in #❓┊help
Route not found for Filament Resource Page
Well, if deleting that folder helped it's probably not OpCache. Did you run artisan filament:optimize or similar at any point?
33 replies
FFilament
Created by Marek on 5/8/2025 in #❓┊help
Route not found for Filament Resource Page
I guess that should be fixed by a restart though. 🤔
33 replies
FFilament
Created by Marek on 5/8/2025 in #❓┊help
Route not found for Filament Resource Page
Sounds like OpCache to me then. What's you OS and dev environment?
33 replies
FFilament
Created by Lindiar Miftari on 5/8/2025 in #❓┊help
Conditional createOptionForm in Filament
This could work:
->createOptionForm(fn ($operation) => $operation == 'edit' ? [] : [your form])
->createOptionForm(fn ($operation) => $operation == 'edit' ? [] : [your form])
3 replies
FFilament
Created by Marek on 5/8/2025 in #❓┊help
Route not found for Filament Resource Page
it's really a wrapper on route() method
Yeah, makes sense 🙈 Hm, it's weird. I think I have seen the issue from times to times but it always "magically appears and disappears" again. Can it be some OpCaching? As it works on the CLI but not the browser? Can you try dumping Route::getRoutes() on any route?
33 replies
FFilament
Created by shaan on 5/8/2025 in #❓┊help
Filamentphp Theme
So it's fixed now?
7 replies
FFilament
Created by Marek on 5/8/2025 in #❓┊help
Route not found for Filament Resource Page
Does this maybe solve the error?
33 replies
FFilament
Created by Marek on 5/8/2025 in #❓┊help
Route not found for Filament Resource Page
Should be okay. I wouldn't use the route() method directly though. You can use PremiumsResource::getUrl('issue', ['record' => $p->id]) instead which should be more reliable.
33 replies
FFilament
Created by kobosoft.dev on 5/7/2025 in #❓┊help
S3 disk config
Did Adams answer solve the issue?
11 replies
FFilament
Created by Marek on 5/8/2025 in #❓┊help
Route not found for Filament Resource Page
The relevant PHP code that tries to use the route is:
Where do you use that code? In a ServiceProvider? It might run before routes are registered.
33 replies
FFilament
Created by Muhammad Umar Mughal Azeemi on 5/8/2025 in #❓┊help
Filepond Issue
I doubt anybody will respond unless you have an actual question that anybody could help with.
2 replies
FFilament
Created by Ric Le Poidevin on 5/8/2025 in #❓┊help
Moved resources to Admin folder and auto discovery is broken
if I run artisan make:filament-resource SomeResource and select the admin panel the generated file’s namespace end in a slash namespace App\Filament\Admin\Resources;
At least that issue seems to be related to the trailing slash in for: 'App\\Filament\\Admin\\Resources\\') in discoverResources:
5 replies
FFilament
Created by Andrew3228 on 5/8/2025 in #❓┊help
canEdit() (etc) on Filament resources
also see if there is anything else I should consider.
Try to stick to policies as much as you can. Is there a reason you need to overwrite the behaviour in Filament?
6 replies
FFilament
Created by Andrew3228 on 5/8/2025 in #❓┊help
canEdit() (etc) on Filament resources
I don't think we have that documented. But you can probably just have a look at the definition of those methods.
From testing, it seems if I have something defined here it over-rides the laravel policies for that same model. It also seems to only impact the model within the Filament panel, which makes sense.
Seems about right. The default method should probably just call the policy.
6 replies
FFilament
Created by shaan on 5/8/2025 in #❓┊help
Filamentphp Theme
If you run the artisan make:filament-theme command it should create the correct files for you. Did you do that?
7 replies
FFilament
Created by Myster on 5/7/2025 in #❓┊help
->requiresConfirmation() on a button on the blade
Maybe explain more about your "button in Blade". Why don't you use a Filament Action?
10 replies