n-schouten / filament-image-manager
Requires
- spatie/image: ^3.8
This package is not auto-updated.
Last update: 2025-06-27 19:38:38 UTC
README
A simple yet powerful image manager for Laravel Filament
Features
- Field for Filament to select or upload an image
- Working with different disks/directories
- Filament Resource for overview of all images
- Performing conversions with
Spatie/Image
- Soft Deletes of Images, cleaning up the database record and belonging files after a set amount of days.
Installation
You can install this package using Composer. Ensure that Laravel and Filament are already set up in your main project before proceeding. This package will also install the Spatie/Image-package.
composer require n-schouten/filament-image-manager
After installing, you need to publish the migrations and migrate by running the following commands:
php artisan vendor:publish --tag=image-manager-migrations php artisan migrate
In case you are using the public
disk, make sure a symbolic link has been made from source directory storage/app/public to target directory public/storage. You can do this by running te following command:
php artisan storage:link
You can publish the configuration file, although it is not required. To do so, run the following command: php artisan vendor:publish --tag=image-manager-config
Installation as Filament Plugin
After this, install the package as a plugin in your Filament Panel Service Provider panel()
function
use NSchouten\FilamentImageManager\ImageManagerPlugin; $panel->plugin(new ImageManagerPlugin())