sinevia/laravel-media-manager

Media manager for Laravel - browse / create / rename / delete files and folders.

v1.2.0 2020-12-04 08:28 UTC

This package is auto-updated.

Last update: 2024-11-04 16:53:19 UTC


README

Installation

  • Composer
composer require sinevia/laravel-media-manager
  • Manual. To dev-master (for development only)
"repositories": [
   {
       "type": "vcs",
       "url": "https://github.com/Sinevia/laravel-media-manager.git"
   }
],
"require": {
    "Sinevia/laravel-media-manager": "dev-master"
},

Configuration

Step 1. Create a new directory in your public directory called media /public/media

Step 2. Create a new entry in your filesystems.php config file

'media_manager' => [
    'driver' => 'local',
    'root' => public_path('media'),
    'visibility' => 'public',
],

Step 3. Add a new entry in your routers file

Route::group(['middleware' => ['admin-only-middleware']], function () {
    AdvancedRoute::controller('/media', '\Sinevia\LaravelMediaManager\Controllers\MediaController');
});