PHPackages                             lidai/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. lidai/laravel-imageup

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

lidai/laravel-imageup
=====================

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

1.3.2(9mo ago)1323MITPHPPHP ^7.3|^8.0

Since Apr 19Pushed 9mo ago2 watchersCompare

[ Source](https://github.com/lidaijfm/laravel-imageup)[ Packagist](https://packagist.org/packages/lidai/laravel-imageup)[ Docs](https://github.com/lidaijfm/laravel-imageup)[ RSS](/packages/lidai-laravel-imageup/feed)WikiDiscussions main Synced 4d ago

READMEChangelog (6)Dependencies (5)Versions (8)Used By (0)

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

[](#laravel-imageup)

The `lidai/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 lidai/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:

```
Lidai\ImageUp\ImageUpServiceProvider::class
```

You can optionally publish the config file with:

```
php artisan vendor:publish --provider="Lidai\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**

```
