Filament has a few requirements to run:
- PHP 8.0+
- Laravel v8.0+
- Livewire v2.0+
This plugin is compatible with other Filament v2.x packages.
Install the plugin with Composer:
composer require filament/spatie-laravel-media-library-plugin:"^2.0"
If you haven't already done so, you need to publish the migration to create the media table:
php artisan vendor:publish --provider="Spatie\MediaLibrary\MediaLibraryServiceProvider" --tag="migrations"
Run the migrations:
php artisan migrate
You must also prepare your Eloquent model for attaching media.
For more information, check out Spatie's documentation.
To upgrade the package to the latest version, you must run: