Associate files with Eloquent models
204,845
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-11-08 03:01:30
Package Statistics
Total Downloads: 204,845
Monthly Downloads: 3,056
Daily Downloads: 147
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.