ridhima/mediamanager
Composer 安装命令:
composer require ridhima/mediamanager
包简介
README 文档
README
This extension integrates barryvdh/laravel-elfinder media manager.
Requirements
Installation
Install with composer
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 route: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.
Install with package folder
- Unzip all the files to packages/Ridhima/MediaManager.
- Run composer command to download the required package
composer require barryvdh/laravel-elfinder:^0.4.7
- 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.
ridhima/mediamanager 适用场景与选型建议
ridhima/mediamanager 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 8.75k 次下载、GitHub Stars 达 7, 最近一次更新时间为 2020 年 11 月 30 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 ridhima/mediamanager 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 ridhima/mediamanager 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 8.75k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 7
- 点击次数: 14
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-11-30