Associate files with Eloquent models
210,768
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: 2025-01-14 15:01:37
Package Statistics
Total Downloads: 210,768
Monthly Downloads: 2,354
Daily Downloads: 153
Total Stars: 8
Total Watchers: 3
Total Forks: 9
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.