Method Filament\Panel::assets does not exist.

I'm on Filament 3.1 Trying to register assets for a panel.
public function panel(Panel $panel): Panel
{
return $panel
->id('seller')
->path('my-shop')
->colors([
'primary' => Color::Blue,
])
->assets([
Css::make('custom-stylesheet', resource_path('css/seller-panel.css')),
Js::make('custom-script', resource_path('js/seller-panel.js')),
])
}
public function panel(Panel $panel): Panel
{
return $panel
->id('seller')
->path('my-shop')
->colors([
'primary' => Color::Blue,
])
->assets([
Css::make('custom-stylesheet', resource_path('css/seller-panel.css')),
Js::make('custom-script', resource_path('js/seller-panel.js')),
])
}
Getting the error
Method Filament\Panel::assets does not exist.
Method Filament\Panel::assets does not exist.
1 Reply

Did you find this page helpful?