uidb-dev / laravel-filemanager
该包最新版本(dev-main)没有可用的许可证信息。
dev-main
2024-08-18 11:04 UTC
Requires
- intervention/image: ^2.4
- spatie/laravel-html: ^3.11
- tightenco/ziggy: ^2.2
This package is not auto-updated.
Last update: 2024-09-29 11:43:53 UTC
README
========
安装
Laravel >= 5.5
使用 composer 安装此包
composer require uidb-dev/laravel-filemanager
就这样 :)
配置
在路由服务提供者文件中注册包的路由
FileManager::routes();
使用以下命令发布配置文件
php artisan vendor:publish --tag="file-manager-config"
将紧凌科/齐格斯 js 路由包含到您的布局文件中(在 <head> 标签内)
@routes
要包含包资源,将以下行添加到您的布局模板中
// Inside the <head> tag <meta name="csrf-token" content="{{ csrf_token() }}"> // And @include('FileManager::partials.styles') // Before closing the <body> tag <script> $(function () { FileManagerModal.init(); }); </script> @include('FileManager::partials.scripts') @include('FileManager::partials.file-manager-modal')
将裁剪验证翻译添加到您的 validation.php 翻译文件中
'is_croppable' => 'The :attribute is not croppable according to all sizes.',
为弹出状态准备一个简约布局,然后将其添加到 file-manager.php 配置文件中。
- 确保您在包配置文件中选择一个磁盘 - 文件将存储在该磁盘上。