// Declare the rules for the form validation
$rules = array(
'email' => 'required|email',
'password' => 'required|between:3,32',
);
// Create a new validator instance from our validation rules
$validator = Validator::make(Input::all(), $rules);
// If validation fails, we'll exit the operation now.
if ($validator->fails())
{
// Ooops.. something went wrong
return Redirect::back()->withInput()->withErrors($validator);
}
try
{
// Try to log the user in
Sentry::authenticate(Input::only('email', 'password'), Input::get('remember-me', 0));
// Redirect to the users page
return Redirect::back();
}
catch (\Exception $e) {
return Redirect::route('site.login')->withErrors(array('login' => $e->getMessage()));
}
Bu kodda laravelin dönderdiği mesaj ingilizce dönüyor bunu nasıl türkçeye çevirebilirim.türkçe ingilizce desteği konulmuş bir kısım ama burada işlemiyor.