Support the ongoing development of Laravel.io →
posted 10 months ago
Breeze
0

Note: the above was posted as a bug and was posted and immediately closed by laravel staff because I have to post it here to ask first. So i've done that.

Does anyone have any ideas about the above?

Last updated by @elb98rm 10 months ago.
0
moderator

Hello @elb98rm

Did you check that there isn't another request in between that can accidental clear your flash data? I have had that before with an invalid image link that result in a 404 page and cleared the flashed data because it was available on that request.

0

This is out the box stuff... I can't see any other redirects so I think the answer is no.

    public function store(LoginRequest $request): RedirectResponse
    {
        $request->authenticate();

        $request->session()->regenerate();

        return redirect()->intended(RouteServiceProvider::HOME)->with('success', 'You have successfully logged in!');
        // note: this is the same as /dashboard - this has no redirect and works as previously stated.
    }

This function is not changed in any way from the Breeze defaults, except for ->with('success', 'You have successfully logged in!'); If there are double redirects, they are part of the Breeze scaffolding. I'm pretty sure they should be updated to not double direct.

0

Has anyone been able to look at this? I'm still stuck with this issue, even now with L11.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

elb98rm elb98rm Joined 12 Nov 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.