選択ボックスがたくさんある大きなフォームがあります。Laravel 4 Validationセットアップを使用して、フィールドまたはフィールドが入力されているかどうかを確認し、フィールドが入力されていない場合にページに戻ってエラーを表示するにはどうすればよいですか?
セットアップ方法は知っていますが、ドキュメントにこの問題を解決するものは何もありません。
$input = [
//my get inputs will be going here
];
$rules = array(
//not sure if any rules for not filled are here?
);
$message = array(
//do I need a custom validator?
);
$validation = Validator::make($input, $rules, $message);
if($validation->fails()){
return Redirect::to('login')->withErrors($validation)->withInput();
}