savannabits / media
Associate files with Eloquent models
Installs: 47
Dependents: 2
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/savannabits/media
Requires
- php: ^7.2.5
- illuminate/support: ^6.0|^7.0
- spatie/laravel-medialibrary: ^7.0
Requires (Dev)
- orchestra/testbench: ~4.0
- phpunit/phpunit: ^8.5
This package is auto-updated.
Last update: 2025-10-15 19:37:09 UTC
README
This packages adds an ability to assign a media to your eloquent models. It uses Spatie's spatie/laravel-medialibrary
, but it goes a bit further:
- Collections definition - inspired by the conversions definition, we have created Media Collections definition via similar fluent API
- Auto-Process - saving the eloquent model automatically processes and attaches media collections from the request
- Authorization - controls, who has the permission to attach specific medium to specific model
- Private access - controls, who has the permission to view specific medium
You can find full documentation at https://docs.getcraftable.com/#/media.