Installation
Require the package
composer require codezone/filament-mediazone
Publish the config
php artisan vendor:publish --tag=mediazone-config
This creates config/media.php in your application. See Configuration for all available options.
Publish and run the migration
php artisan vendor:publish --tag=mediazone-migrations
php artisan migrate
The migration creates a media table. The table name is derived from your configured model's getTable() method — override $table on a custom model to rename it.
Publish assets
php artisan filament:assets
This copies CSS and JavaScript to public/css/codezone/filament-mediazone/. Run this once after install, and again after upgrading the package.
Register the plugin
Add MediaZonePlugin to your Filament panel provider:
use Codezone\MediaZone\MediaZonePlugin;
public function panel(Panel $panel): Panel
{
return $panel
->plugins([
MediaZonePlugin::make(),
]);
}
See Plugin for plugin configuration options.
Last modified: 26 June 2026