Ligonsker's avatar

On Laravel 12 + Livewire starter kit - where do I change where users are redirected to if they're authenticated and trying to access guest routes?

Hi,

Right now, when a logged in user is trying to go to /register while he's logged it, it redirects to the /dashboard.

I couldn't find where to change that.

On config/fortify.php you have the Home Path:

    /*
    |--------------------------------------------------------------------------
    | Home Path
    |--------------------------------------------------------------------------
    |
    | Here you may configure the path where users will get redirected during
    | authentication or password reset when the operations are successful
    | and the user is authenticated. You are free to change this value.
    |
    */

    'home' => '/dashboard',

But that doesn't work if I change it to 'home' => '/', because I guess as the comment above says, it's only for successful operations not redirects without any action

Thanks

0 likes
1 reply

Please or to participate in this conversation.