文件上传
This commit is contained in:
parent
2d7f5e9ddd
commit
c5c73005e9
|
|
@ -13,9 +13,9 @@ class FileController extends Controller
|
||||||
|
|
||||||
$path = $file->store($type . '/', 'upload');
|
$path = $file->store($type . '/', 'upload');
|
||||||
|
|
||||||
return [
|
return json_success('上传成功', [
|
||||||
'url' => asset('upload/' . $path),
|
'url' => asset('upload/' . $path),
|
||||||
'value' => 'upload/' . $path,
|
'value' => 'upload/' . $path,
|
||||||
];
|
]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue