PHPackages                             fsasvari/laravel-uploadify - 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. [File &amp; Storage](/categories/file-storage)
4. /
5. fsasvari/laravel-uploadify

ActiveLibrary[File &amp; Storage](/categories/file-storage)

fsasvari/laravel-uploadify
==========================

Library for Laravel that handles image uploading with renaming, showing thumbnail image with custom route and more.

v3.0.0(1y ago)115013[1 issues](https://github.com/fsasvari/laravel-uploadify/issues)[1 PRs](https://github.com/fsasvari/laravel-uploadify/pulls)MITPHPCI failing

Since Aug 2Pushed 1y ago1 watchersCompare

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

READMEChangelog (10)Dependencies (6)Versions (22)Used By (0)

Laravel Uploadify
=================

[](#laravel-uploadify)

Uploadify is a library for Laravel 5.5+ that handles image uploading with automatic renaming, showing thumbnail image with custom routes and more. All that is available over Eloquent models.

[![Build For Laravel](https://camo.githubusercontent.com/9d0e49e88cc565047271b33091f74c61bd665a5690747864fcff8e335eb285e9/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4275696c745f666f722d4c61726176656c2d6f72616e67652e737667)](https://styleci.io/repos/79834672)[![Latest Stable Version](https://camo.githubusercontent.com/f1f3d375e21b3e4de5fe8ef5749176051017dc63ec67e51d4e003378ecaf1f0b/68747470733a2f2f706f7365722e707567782e6f72672f66736173766172692f6c61726176656c2d75706c6f61646966792f762f737461626c65)](https://packagist.org/packages/fsasvari/laravel-uploadify)[![Latest Unstable Version](https://camo.githubusercontent.com/c733b15156146462363e82abdb3d3d3d9be5dc8d2703c402720fc6fed05c39f8/68747470733a2f2f706f7365722e707567782e6f72672f66736173766172692f6c61726176656c2d75706c6f61646966792f762f756e737461626c65)](https://packagist.org/packages/fsasvari/laravel-uploadify)[![Total Downloads](https://camo.githubusercontent.com/bbcd31c0679ddf04b90f0847f284c94134faef69f2bb1e564899370b97d4bd5a/68747470733a2f2f706f7365722e707567782e6f72672f66736173766172692f6c61726176656c2d75706c6f61646966792f646f776e6c6f616473)](https://packagist.org/packages/fsasvari/laravel-uploadify)[![License](https://camo.githubusercontent.com/d2314714d50f46e49a2aed712cf74579f78af652167176409f779673ec7f75f8/68747470733a2f2f706f7365722e707567782e6f72672f66736173766172692f6c61726176656c2d75706c6f61646966792f6c6963656e7365)](https://packagist.org/packages/fsasvari/laravel-uploadify)

Installation
------------

[](#installation)

### Step 1: Install package

[](#step-1-install-package)

To get started with Laravel Uploadify, execute Composer command to add the package to your composer.json project's dependencies:

```
composer require fsasvari/laravel-uploadify

```

Or add it directly by copying next line into composer.json:

```
"fsasvari/laravel-uploadify": "2.*"

```

And then run composer update:

```
composer update

```

### Step 2: Service Provider and Facade

[](#step-2-service-provider-and-facade)

After installing the Laravel Uploadify library, register the `Uploadify\Providers\UploadifyServiceProvider` in your `config/app.php` configuration file:

```
'providers' => [
    // Application Service Providers...
    // ...

    // Other Service Providers...
    Uploadify\Providers\UploadifyServiceProvider::class,
    // ...
],
```

Optionally, you can add alias to `Uploadify` facade:

```
'aliases' => [
    'Uploadify' => Uploadify\Facades\UploadifyManager::class,
];
```

### Step 3: Configuration

[](#step-3-configuration)

We need copy the configuration file to our project.

```
php artisan vendor:publish --tag=uploadify

```

### Step 4: Symbolic link

[](#step-4-symbolic-link)

If you have not yet created symbolic link in project, we need to create link between `public` and `storage` directories. We can use built in Laravel function `storage:link` which will create link between `public/storage` and `storage/app/storage` directories.

```
php artisan storage:link

```

Or use Windows function for custom storage link:

```
mklink /d "c:\path-to-project\project-name\public\custom-directory-name" "c:\path-to-project\project-name\storage\app\custom-directory-name" // custom-directory-name could be "storage", "upload"...

```

Or use Unix function for custom storage link:

```
ln -s /path-to-project/project-name/storage/app/custom-directory-name /path-to-project/project-name/public/custom-directory-name // custom-directory-name could be "storage", "upload"...

```

### Step 5: Models

[](#step-5-models)

You need to include `UploadifyTrait` trait in your Eloquent models.

#### Files

[](#files)

If you need to show simple files (pdf, doc, zip...) in Eloquent model, you need to define `$uploadifyFiles` public property with database field name as key and `path` as array value which is required. Also, `disk` value is optional and it will be taken from default disk value from configuration.

```
