laravel-imageable maintained by koyanyaroo
Description
A Simple upload library for laravel
Author
Last update
2020/09/04 01:47
(dev-master)
License
Downloads
4
Tags
Laravel Imageable
This package allows you to easily handle image upload in laravel.
Installation
You can install the package via composer:
composer require koyanyaroo/laravel-imageable
Introduction
Introduction here
Usage
Define your model
use Koyanyaroo\Imageable;
...
/**
* @var string upload directory
*/
protected $uploadDir = '';
/**
* Define an array of filter that allowed to use for this model
* `key` as class name and `value` as field name(s)
*
* @var array
*/
protected $imageableField = [
'image',
'image_hero' => [
'thumb' => [
380, // widht
253, // height
],
],
];
Credits
License
The MIT License (MIT). Please see License File for more information.