zeroibc / large-file-upload
An extension of laravel-admin for uploading large files to qiniu
Installs: 708
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Language:JavaScript
Requires
- php: >=7.0.0
- encore/laravel-admin: ~1.6
Requires (Dev)
- phpunit/phpunit: ~6.0
This package is auto-updated.
Last update: 2025-03-07 19:48:11 UTC
README
本扩展包是针对laravel-admin开发的大文件直接上传到七牛的工具, 直接用于Form组件。当前版本为Laravel 5.5。
1,安装:
composer require zeroibc/large-file-upload
2,发布本扩展包的静态资源:
php artisan vendor:publish --tag=large-file-upload
3,注册进laravel-admin,在app/Admin/bootstrap.php中添加以下代码:
Encore\Admin\Form::extend('largefile', \Zero\LargeFileUpload\LargeFileField::class);
6,在控制器中直接调用就可以了:
$form->largefile('ColumnName', 'LabelName');