我有职能时如何更新图像

时间:2019-04-23 06:16:59

标签: laravel

我在更新照片中与此代码有关的问题: 我已经有功能了,但是不起作用

if (isset($request['image'])) {
    $image = request()->file('image')->move("pictures/{$users[0]['username']}", 'public');
}
if (isset($request['licenseimage_front'])) {
    $request['licenseimage_front'] = request()->file('licenseimage_front')->store("licensepicture/front/{$users[0]['username']}", 'public');
}
if (isset($request['licenseimage_back'])) {
    $request['licenseimage_back'] = request()->file('licenseimage_back')->store("licensepicture/back/{$users[0]['username']}", 'public');
}

0 个答案:

没有答案