Plugin [awcodes/curator] is not registered for panel [customer].

Hello everyone! I've run into a bit of an issue. I have three panels: Admin, Operator, and Customer. In the Customer panel, I don’t plan to use the awcodes/curator plugin. When it’s listed under ->plugins() method in CustomerPanelProvider, everything works fine. However, after removing it from the plugins list in CustomerPanelProvider, I get an error: Plugin [awcodes/curator] is not registered for panel [customer]. At the same time, the plugin isn’t listed in OperatorPanelProvider, and the error only appears when I remove it from the Customer panel. What could be the cause?
3 Replies
tlegenbayangali
tlegenbayangaliOP7d ago
AdminPanelProvider
public function panel(Panel $panel): Panel
{
return $panel
->plugin(
CuratorPlugin::make()
->label('Медиа')
->pluralLabel('Медиа')
->navigationIcon('heroicon-o-photo')
->navigationGroup('Галерея')
->navigationSort(3)
->navigationCountBadge()
->registerNavigation(true)
->defaultListView('grid')
);
}
public function panel(Panel $panel): Panel
{
return $panel
->plugin(
CuratorPlugin::make()
->label('Медиа')
->pluralLabel('Медиа')
->navigationIcon('heroicon-o-photo')
->navigationGroup('Галерея')
->navigationSort(3)
->navigationCountBadge()
->registerNavigation(true)
->defaultListView('grid')
);
}
OperatorPanelProvider
public function panel(Panel $panel): Panel
{
return $panel
->plugins([
ActivitylogPlugin::make()
->navigationGroup('Logs')
->resource(ActivityResource::class)
->label('Logs'),
]);
}
public function panel(Panel $panel): Panel
{
return $panel
->plugins([
ActivitylogPlugin::make()
->navigationGroup('Logs')
->resource(ActivityResource::class)
->label('Logs'),
]);
}
CustomerPanelProvider
public function panel(Panel $panel): Panel
{
return $panel
->plugin(
CuratorPlugin::make()
->label('Медиа')
->pluralLabel('Медиа')
->navigationIcon('heroicon-o-photo')
->navigationGroup('Галерея')
->navigationSort(3)
->navigationCountBadge()
->registerNavigation(true)
->defaultListView('grid')
);
}
public function panel(Panel $panel): Panel
{
return $panel
->plugin(
CuratorPlugin::make()
->label('Медиа')
->pluralLabel('Медиа')
->navigationIcon('heroicon-o-photo')
->navigationGroup('Галерея')
->navigationSort(3)
->navigationCountBadge()
->registerNavigation(true)
->defaultListView('grid')
);
}
awcodes
awcodes7d ago
Seen this before and it’s something to do with the plugin object in filament. Haven’t be able to track it down not has Dan. Possible solution to include it and set the registerNavigation to false.
tlegenbayangali
tlegenbayangaliOP6d ago
Got it! Thanks for the answer.
Want results from more Discord servers?
Add your server