0
我想驗證文件輸入字段,是laravel中的新功能,所以我無法弄清楚缺少什麼。驗證器功能在laravel中不起作用
這裏是我的代碼:
public function postUploadS(){
$file = array(Input::file('file'));
$rule = array('file' => 'required');
$validate = Validator::make($file,$rule);
if($validate->fails()){
var_dump($file); exit();
}
else{
return View::make('admin.uploadStaff'); }
}
我,我不能去,即使我選擇文件,任何幫助uploadStaff視圖請
張貼表格.... – itachi 2014-11-05 12:19:25