これが私のpostLoginメソッドです:
$userdata = array(
'email' => Input::get('email'),
'password' => Input::get('password'),
'enabled' => 1
);
if (Auth::attempt($userdata))
{
return Redirect::intended('/');
}
return Redirect::route('login')
->withInput(Input::except('password'))
->withErrors(array('password' => 'Password invalid'));
私は自分のモデルでアーデントを使用しています。Ardent->save() を使用していないため、ログイン フォームを検証してエラー メッセージを取得するにはどうすればよいですか?