This extension integrates barryvdh/laravel-elfinder media manager.
Require this package with Composer
composer require ridhima/mediamanager
Add the ServiceProvider to the providers array in config/app.php
Ridhima\MediaManager\Providers\MediaManagerServiceProvider::class
Run below commands before publishing assets to the public folder:
composer dump-autoload
php artisan config:clear
php artisan cache:clear
php artisan storage:link
Run below artisan command to download the required assets files to the public folder
php artisan mediamanager:publish
Remember to publish the assets after each update (or add the command to your post-update-cmd in composer.json)
Run below command to publish config and additional assets files to make it compatible with Bagisto backend theme
php artisan vendor:publish --provider='Ridhima\MediaManager\Providers\MediaManagerServiceProvider'
Add below lines of code in config\filesystems.php to add a new disk.
'mediamanager' => [
'driver' => 'local',
'root' => storage_path('app/public/media'),
]
In your config/elfinder.php, you can change the default folder, the access callback or define your own roots. Rest of the configuration details are mentioned in barryvdh/laravel-elfinder media manager.
- Unzip all the files to packages/Ridhima/MediaManager.
- Run composer command to download the required package
composer require barryvdh/laravel-elfinder:^0.4.6
- Goto composer.json file inside the Bagisto root directory then add the following line under 'psr-4'
"Ridhima\\MediaManager\\": "packages/Ridhima/MediaManager/src"
- Goto config/app.php file then add the following line under 'webkul packages'
Ridhima\MediaManager\Providers\MediaManagerServiceProvider::class
- Run below commands before publishing assets to the public folder:
composer dump-autoload
php artisan config:clear
php artisan cache:clear
php artisan storage:link
- Run below artisan command to download the required assets files to the public folder:
php artisan mediamanager:publish
- After that run below command to publish config and additional assets files to make it compatible with Bagisto backend theme
php artisan vendor:publish --provider='Ridhima\MediaManager\Providers\MediaManagerServiceProvider'
- Add below lines of code in config\filesystems.php to add a new disk.
'mediamanager' => [
'driver' => 'local',
'root' => storage_path('app/public/media'),
]
Now you can manage the static media files from the dedicated section as well as from the editor.