Plugin dev

Hi, I am working locally on a plugin which has assets. So in the provider I have FilamentAsset::register([ Css::make('filament-nested-list-styles', __DIR__ . '/../resources/dist/filament-nested-list.css')->loadedOnRequest(), Js::make('filament-nested-list-scripts', __DIR__ . '/../resources/dist/filament-nested-list.js'), ], 'invaders-xx/filament-nested-list'); in packageBooted function. Those file exists on disk but when I do a
x-load-css="[@js(FilamentAsset::getStyleHref('filament-nested-list-styles', package: 'invaders-xx/filament-nested-list'))]"
x-load-css="[@js(FilamentAsset::getStyleHref('filament-nested-list-styles', package: 'invaders-xx/filament-nested-list'))]"
in the view, the system does not find the css file. Did I miss smth ? Thanks
Solution:
you need to publish them with php artisan filament:assets
Jump to solution
3 Replies
Solution
awcodes
awcodes9mo ago
you need to publish them with php artisan filament:assets
David Vincent
David VincentOP9mo ago
Thanks Adam
awcodes
awcodes9mo ago
it's not the most convient development flow, but it's the best we have for now. cheers.

Did you find this page helpful?