zeroibc / video-qiniu-upload
An extension of laravel-admin for uploading video to qiniu
Installs: 4 103
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: 2024-10-18 22:30:13 UTC
README
本扩展包是针对laravel-admin开发的大文件直接上传到七牛的工具, 直接用于Form组件。当前版本为Laravel 5.8。
1,安装:
composer require zeroibc/video-qiniu-upload
2,发布本扩展包的静态资源:
php artisan vendor:publish --tag=video-qiniu-upload
3,注册进laravel-admin,在app/Admin/bootstrap.php中添加以下代码:
Encore\Admin\Form::extend('videoQiniuUpload', \Zero\VideoQiniuUpload\VideoQiniuUploadField::class);
6,在控制器中直接调用就可以了:
$form->videoQiniuUpload('ColumnName', 'LabelName');