這是我的表單控件在數據庫表這段代碼中的錯誤是什麼?
public function store(Applicant $appl, ApplicantForm $request)
{
if($request->hasFile('ppimg_filename'))
{
$destinationPath="offerimages";
$file = $request->file('ppimg_filename');
$filename=$file->getClientOriginalName();
$request->file('ppimg_filename')->move($destinationPath,$filename);
}
$a=$appl->create($request->all());
$a['ppimg_filename'] = $filename;
return 'done';
}
什麼可能會導致error:undefined filename
與圖像插入細節?