Closed sedehi closed 10 years ago
i used this code in controller
$input = Input::all();
$Validator = Validator::make($input, array( 'email' => 'required|email', 'password' => 'required|min:6' )); if($Validator->passes()) { Auth::author()->attempt(array( 'email' => $input['email'], 'password' => Hash::make($input['password']) )); var_dump(Auth::author()->check()); }
return this on submit form
select * from author where email = ? limit 1 bool(false)
author
email
i used this code in controller
$input = Input::all();
return this on submit form
select * from
author
whereemail
= ? limit 1 bool(false)