Plugin
MediaZonePlugin is the Filament plugin class that registers the media resource, assets, and Livewire components with your panel.
Registration
use Codezone\MediaZone\MediaZonePlugin;
public function panel(Panel $panel): Panel
{
return $panel
->plugins([
MediaZonePlugin::make(),
]);
}
What the plugin registers
The
MediaResourceFilament resource (media listing and edit pages)The
MediaPickerPanelandMediaCropperPanelLivewire componentsCSS and JavaScript assets (cropper.js, picker styles, listing styles, cropper styles)
Navigation
Navigation label, group, icon, and sort order are all driven by config('media.resources'). Override them in your published config:
'resources' => [
'navigation_group' => 'Assets',
'navigation_icon' => 'heroicon-o-film',
'navigation_sort' => 10,
],
To hide the resource from navigation entirely:
'should_register_navigation' => false,
Custom resource class
To replace the MediaResource with your own (e.g. to add custom columns or actions to the edit form), set:
'resources' => [
'resource' => \App\Filament\Resources\MediaResource::class,
],
Your class should extend Codezone\MediaZone\Filament\Resources\MediaResource.
Last modified: 26 June 2026