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

Hi.

I have a controller with this:


    $validator = Validator::make(Input::all(), $rules);
    if ($validator->fails()) {
        return Redirect::back()->withInput()->withErrors($validator);
    }

When SessionMiddleware is "active", Old Input and Errors don't work. Look as they are "lost".

How to resolve this?

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

trm42 trm42 Joined 19 Feb 2014

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.