Arnold Schwarzenegger
Opening modals on page visit
You can set a
$defaultAction
https://filamentphp.com/docs/3.x/panels/pages#opening-an-action-modal-when-a-page-loads5 replies
Spatie Media collections are not working in CategoryResource
It's in the docs. If you want to save to a specific folder, either create a different disk in
filesystems.php
and use that (eg
or do as I said above and use a custom path generator (I don't have an example for that at hand sorry)8 replies
Spatie Media collections are not working in CategoryResource
Collections and paths are different things. To change the generated path, you need to create a custom
PathGenerator
https://spatie.be/docs/laravel-medialibrary/v11/advanced-usage/using-a-custom-directory-structure8 replies
Searching in big database results in timeout
Hmm this can be a lot of things
1) Install Laravel debugbar to see which query is actually the slowest. It might be that you're running into a n+1 issue
2) Disable pagination on the table to see if it helps
3) Relevant to the 1st point, check pre-load any relationships you might be using
18 replies
advanced form
Something like this might help https://filamentphp.com/docs/3.x/forms/advanced#injecting-the-state-of-another-field
There are other example in that page that you can use, depending on what you're trying to do
3 replies