zxf5115 / laravel-upload
a laravel upload plugins for Laravel 6
v1.0.1
2021-06-03 06:08 UTC
Requires
- php: >=7.2
- illuminate/support: >=6.0
This package is not auto-updated.
Last update: 2025-03-11 05:36:18 UTC
README
为系统开发上传组件,测试阶段(不建议使用)
Requirement
- PHP >= 7.2
- Composer
- goodgay/huaweiobs 4.
Installation
$ composer require "zxf5115/laravel-upload"
app.php 中 providers 下添加:
zxf5115\Upload\FileServiceProvider::class
发布配置文件
php artisan vendor:publish
Usage
基本使用(以服务端为例):
<?php
use zxf5115\Upload\File;
$category = $request->category ?? 'file';
$response = File::file('file', $category);