Issue with Loading Custom Assets in Filament Modal
I'm currently facing an issue with loading custom assets into a Filament modal, and I'm hoping to get some guidance on how to resolve it.
I have implemented an action modal in Filament that is supposed to load custom content to be rendered inside the modal. I have specified the content by passing a Blade view into the
modalContent()
method. However, I've encountered an issue where the custom content is not being displayed within the modal.
I've registered the CSS (using custom CSS, not Tailwind CSS) and JS assets in the FilamentAsset
facade in the AppServiceProvider's boot()
method.
I've tested these assets on a regular single-page Blade view (outside Filament), and they work perfectly there. However, they do not seem to work when loaded inside the Filament modal.
I'm trying to understand what might be causing this issue. Is there something specific I need to do differently when loading custom assets into a Filament modal compared to a regular Blade view?0 Replies