PHPackages                             qcod/laravel-imageup - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. qcod/laravel-imageup

ActiveLibrary[Database &amp; ORM](/categories/database)

qcod/laravel-imageup
====================

Auto Image upload, resize and crop for Laravel eloquent model using Intervention image

1.2.5(1y ago)771118.4k↓27.5%62[5 issues](https://github.com/qcod/laravel-imageup/issues)[3 PRs](https://github.com/qcod/laravel-imageup/pulls)MITPHPPHP ^7.3|^8.0CI failing

Since Sep 21Pushed 1y ago18 watchersCompare

[ Source](https://github.com/qcod/laravel-imageup)[ Packagist](https://packagist.org/packages/qcod/laravel-imageup)[ Docs](https://github.com/qcod/laravel-imageup)[ RSS](/packages/qcod-laravel-imageup/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (10)Dependencies (5)Versions (21)Used By (0)

Laravel ImageUp
---------------

[](#laravel-imageup)

[![Latest Version on Packagist](https://camo.githubusercontent.com/9a88ab933d7b711a78871a4e5994d5979cab006a8dc353eec9e18b11e2dfce6e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f71636f642f6c61726176656c2d696d61676575702e737667)](https://packagist.org/packages/qcod/laravel-imageup)[![Software License](https://camo.githubusercontent.com/074b89bca64d3edc93a1db6c7e3b1636b874540ba91d66367c0e5e354c56d0ea/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e737667)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/07dcd5b12c5aa8f5c038fc8e82997e0e15446d11712bdfb115ca87d87263cbc7/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f71636f642f6c61726176656c2d696d61676575702f6d61737465722e737667)](https://travis-ci.org/qcod/laravel-imageup)[![Total Downloads](https://camo.githubusercontent.com/9f7c9544ef6bf8c9148932baf75799c7d4640e07391d24d5ccff39ea097d6605/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f71636f642f6c61726176656c2d696d61676575702e737667)](https://packagist.org/packages/qcod/laravel-imageup)

The `qcod/laravel-imageup` is a trait which gives you auto upload, resize and crop for image feature with tons of customization.

### Installation

[](#installation)

You can install the package via composer:

```
$ composer require qcod/laravel-imageup
```

The package will automatically register itself. In case you need to manually register it you can by adding it in `config/app.php` providers array:

```
QCod\ImageUp\ImageUpServiceProvider::class
```

You can optionally publish the config file with:

```
php artisan vendor:publish --provider="QCod\ImageUp\ImageUpServiceProvider" --tag="config"
```

It will create [`config/imageup.php`](#config-file) with all the settings.

### Getting Started

[](#getting-started)

To use this trait you just need to add `use HasImageUploads` on the Eloquent model and define all the fields which needs to store the images in database.

**Model**

```
