PHPackages                             cyrodjohn/l5-media-manager - 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. cyrodjohn/l5-media-manager

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

cyrodjohn/l5-media-manager
==========================

Creates an amazing user interface for upload media files and manage them. This is a fork of https://github.com/JoanVt/L5-media-manager

1.0.1(10y ago)019JavaScriptPHP &gt;=5.4.0

Since Sep 30Pushed 8y ago1 watchersCompare

[ Source](https://github.com/cyrodjohn/L5-media-manager)[ Packagist](https://packagist.org/packages/cyrodjohn/l5-media-manager)[ Docs](https://github.com/JoanVt/L5-media-manager)[ RSS](/packages/cyrodjohn-l5-media-manager/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (5)Used By (0)

Install L5-media-manager
========================

[](#install-l5-media-manager)

\##Easy eloquent media manager for Laravel 5.1 and Bootsrap 3.

Demo:
=====

[](#demo)

#### Add

[](#add)

[![](https://cloud.githubusercontent.com/assets/6444260/10274954/97aad228-6b43-11e5-865a-d770aba57530.png)](https://cloud.githubusercontent.com/assets/6444260/10274954/97aad228-6b43-11e5-865a-d770aba57530.png)

#### List

[](#list)

[![](https://cloud.githubusercontent.com/assets/6444260/10274952/97a5f618-6b43-11e5-9fc2-c5e86000205c.png)](https://cloud.githubusercontent.com/assets/6444260/10274952/97a5f618-6b43-11e5-9fc2-c5e86000205c.png)

#### Info

[](#info)

[![](https://cloud.githubusercontent.com/assets/6444260/10274953/97a890bc-6b43-11e5-9e1c-b1aec3623d92.png)](https://cloud.githubusercontent.com/assets/6444260/10274953/97a890bc-6b43-11e5-9e1c-b1aec3623d92.png)

Edit your required dependencies in composer.json: ` "joanvt/l5-media-manager": "dev-master" `

\####Step 1 - With CMD Composer execute: `composer update`

\####Step 2 - Then, with CMD PHP execute: `php artisan vendor:publish`

\####Step 3 - Now, just add the provider class in your config/app.php:

`Joanvt\MediaManager\MediaManagerServiceProvider::class`

\####Step 4 - Migrate the database. With CMD PHP execute: ` php artisan migrate`

\####Step 5 - Create your Media Model (You can use an Alias if you want difining it in config/app.php ):

```
namespace app\Models;

use Illuminate\Database\Eloquent\Model;
class MyMediaClass extends Model {

    protected $table = 'media';
    protected $fillable = ['name','path','description','ext','gallery_id','status'];
    protected $guarded = ['id'];
}

```

\####Step 6 - Create your view with our three methodes and include your query in "lists" method:

```
	{!! Joanvt\MediaManager\MediaManager::styles() !!}

	{!!  Joanvt\MediaManager\MediaManager::lists(Media::where('status','A')->orderBy('id','DESC'))  !!}

   	{!! Joanvt\MediaManager\MediaManager::scripts() !!}

```

\####Step 7 - Create a Request validator (app/Http/Requests):

```
