Package Data | |
---|---|
Maintainer Username: | beestreams |
Maintainer Contact: | info@studiotriangular.se (Mikael Biström) |
Package Create Date: | 2017-08-14 |
Package Last Update: | 2017-08-24 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2025-02-06 03:05:01 |
Package Statistics | |
---|---|
Total Downloads: | 121 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 1 |
Total Watchers: | 2 |
Total Forks: | 0 |
Total Open Issues: | 0 |
Beestreams\LaravelImageable\ImageableProvider::class
php artisan vendor:publish --tag=config
protected $imagePath = 'example/'
$model->attachImage($file);
When file is added to model, it first persists an Image model to DB it then saves the file to specified path. You can set sizes in config to make several images. These are jobs dispatched to queue. For each image size it makes an additional model. When model is deleted, it also deletes the file. When original model is deleted all related models and files are deleted
For method list see Imageable
trait or IntegrationTest
If you want alt_text and description for your files … support for that is coming
TODO:
There is no validation in this package, please validate your requests before using.
If you need to modify migrations, models or traits you can ´vendor:publish´ this package. (not tested)