Associate files with Eloquent models
182,013
8
3
Package Data
Maintainer Username: brackets
Maintainer Contact: pavol.perdik@brackets.sk (Pavol Perdík)
Package Create Date: 2017-09-06
Package Last Update: 2023-10-30
Home Page:
Language: PHP
License: MIT
Last Refreshed: 2024-04-11 03:04:33
Package Statistics
Total Downloads: 182,013
Monthly Downloads: 2,940
Daily Downloads: 102
Total Stars: 8
Total Watchers: 3
Total Forks: 8
Total Open Issues: 1

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 medium

You can find full documentation at https://docs.getcraftable.com/#/media.