初始化
This commit is contained in:
18
app/Http/Controllers/ImageController.php
Normal file
18
app/Http/Controllers/ImageController.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use App\Service\ImageService;
|
||||
|
||||
class ImageController extends Controller
|
||||
{
|
||||
//
|
||||
|
||||
public function upload()
|
||||
{
|
||||
// 获取post的image参数
|
||||
$image = request()->file('image');
|
||||
|
||||
return new ImageService()->processImage($image);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user