zxf5115/laravel-upload

为 Laravel 6 开发的上传插件

v1.0.1 2021-06-03 06:08 UTC

This package is not auto-updated.

Last update: 2024-09-24 03:35:46 UTC


README

为系统开发上传组件,处于测试阶段(不建议使用)

要求

  1. PHP >= 7.2
  2. Composer
  3. goodgay/huaweiobs 4.

安装

$ composer require "zxf5115/laravel-upload"

在 app.php 中 providers 下添加:

zxf5115\Upload\FileServiceProvider::class

发布配置文件

php artisan vendor:publish

使用方法

基本使用(以服务端为例)

<?php

use zxf5115\Upload\File;

$category = $request->category ?? 'file';

$response = File::file('file', $category);