Download the PHP package tomatophp/filament-media-manager without Composer
On this page you can find all versions of the php package tomatophp/filament-media-manager. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package filament-media-manager
Filament media manager
Manage your media files using spatie media library with easy to use GUI for FilamentPHP
Installation
now you need to publish media migration
after install your package please run this command
finally register the plugin on /app/Providers/Filament/AdminPanelProvider.php
, if you like to use GUI and Folder Browser.
Features
- Manage your media files using spatie media library
- Create folders and subfolders
- Set password for folders
- Upload Files with Custom Fields using
->schema()
- Auto Create Folders for Model/Collection/Record
- RTL/Mutli Language Support
Screenshots
Usage
you can use the media manager by add this code to your filament component
Add Custom Preview to selected type on the media manager
you can add custom preview to selected type on the media manager by add this code to your provider
on your view file you can use it like this
you can attach global js
or css
file to the media manager by add this code to your provider
please note that the name
of the component will be the same name of the collection.
Allow Sub Folders
you can allow create and manage subfolders on your media manager on /app/Providers/Filament/AdminPanelProvider.php
Allow User Access
now you can allow user to access selected folder and restract user to access each other folders if the folder is not public on /app/Providers/Filament/AdminPanelProvider.php
now on your user model you can use this trait to allow user to access selected folder
NOTE don't forget to migrate after update the plugin
Folders API
now you can access your media and folders using API you have 2 endpoints
/api/folders
to get all folders/api/folders/{id}
to get folder by id with sub folders and media files
to allow this feature you need to publish the config file by use this command
then you can set api.active
to true
on the config file
Publish Assets
you can publish config file by use this command
you can publish views file by use this command
you can publish languages file by use this command
you can publish migrations file by use this command
Other Filament Packages
Checkout our Awesome TomatoPHP
All versions of filament-media-manager with dependencies
tomatophp/console-helpers Version ^1.1
spatie/laravel-medialibrary Version ^10.0|^11.0
tomatophp/filament-icons Version ^v1.1
filament/spatie-laravel-media-library-plugin Version ^v3.0.0
filament/filament Version ^v3.0.0