Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/brackets-by-triad/media
Associate files with Eloquent models.
https://github.com/brackets-by-triad/media
Last synced: about 1 month ago
JSON representation
Associate files with Eloquent models.
- Host: GitHub
- URL: https://github.com/brackets-by-triad/media
- Owner: BRACKETS-by-TRIAD
- Created: 2017-09-06T12:41:23.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-10-30T11:56:58.000Z (about 1 year ago)
- Last Synced: 2024-11-05T08:18:16.498Z (about 2 months ago)
- Language: PHP
- Homepage:
- Size: 5.05 MB
- Stars: 8
- Watchers: 3
- Forks: 8
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Media
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 mediumYou can find full documentation at https://docs.getcraftable.com/#/media.