Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

TomThameside's avatar

Failed login or failed registering attempt redirects to /(home) on server, but working fine on local server

Hi all,

Not sure if this is a Laravel issue or a Server issue.

In using the Laravel Auth generated by Artisan and have only made minor changes to the templates.

On my local machine everything works fine. But on a live server, when using the login or register pages, any failed attempts redirects to home(/) when it should redirect back with the $errors

My first guess was Nginx could be causing the issue. but couldn't find anything is the Nginx config which could be causing this.

anyways thanks for taking the time to read my issue and hope someone can help.

0 likes
2 replies
douglasakula's avatar

Did you run php artisan migrate as well on remote server ?

munazzil's avatar

Use as like below and check in your app.blade.php.

@if ($message = Session::get('error'))
    <div class="alert alert-success">
        <p>{{ $message }}</p>
    </div>
    @endif

Please or to participate in this conversation.