Support the ongoing development of Laravel.io →
Session Forms
Last updated 2 years ago.
0

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

Last updated 2 years ago.
0

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

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.