Hello,
Try looking into http://laravel.com/docs/4.2/security#authenticating-users
In my opinion you should use something like this:
if (Auth::attempt(array('email' => $email, 'password' => $password)))
{
return Redirect::intended('your_post_form')->withInput();
}
Hope this helps
Thank you for your answer. I know the intended function but i think that wont work in my case especially when the user clicks in another link on the log in screen in order to go to the form that will be able to create a new account. Plus i want to have more control over the form data
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community