enter image description here
下面是我代码
public function store(Request $request)
{
$validateData = $request->validate([
'pembelian_id' => '',
'pconfirm_pic' => 'image|file|max:5087'
]);
// $validatedData['pconfirm_pic'] = $request->file('pconfirm_pic')->store('payment_confirmation','public');
Payconfirm::create($validateData);
return redirect('/user/purchase/?status_pembayaran=1');
}
与控制器存储到的路径匹配
1条答案
按热度按时间34gzjxbg1#
在artisan命令下运行
阅读更多关于