Plugin not working #485
-
Hey guys, I really love Filament. It is awesome. I want to use Charts.css inside of Filament. I need to add the stylesheet.. As described in the documentation, a created a simple service provider and it extends the filament service provider.
I also registered it inside
I also tried it with a leading backslash. But it seems not to work. I can't see any new style inside the head and Charts.css does not work. Anything I am missing? Thanks, Dominik |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
/**
* Bootstrap services.
*
* @return void
*/
public function boot()
{
Filament::serving(function () {
Filament::registerStyle('charts-css-styles', 'https://cdn.jsdelivr.net/npm/charts.css/dist/charts.min.css');
});
} |
Beta Was this translation helpful? Give feedback.
-
@dominikgeimer at the end the answer is easier: since you have a If you remove the |
Beta Was this translation helpful? Give feedback.
@dominikgeimer at the end the answer is easier: since you have a
register()
method in your ServiceProvider, it overwrites thePluginServiceProvider
one and therefore the Filament "hooks" are not triggered.If you remove the
register()
(andboot()
if you want, but not required) method from your provider you can still use theprotected $styles
syntax 😅