$user_data = array(
'email' => $request->input('email'),
'password' => $request->input('password')
);
if(Auth::attempt($user_data))
{
return redirect()->route('home')->with('info', 'You are loggined!');
}
else
{
return redirect()->back()->with('info', 'Wrong email or password');
}