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

6 messages · Page 1 of 1 (latest)

feral zenith
#

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?

#

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')
        );
}
#

OperatorPanelProvider

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')
        );
}
rapid gulch
#

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.

feral zenith
#

Got it! Thanks for the answer.