2 months ago

fresh Laravel 7 don't show errors and redirect to homepage

Posted 2 months ago by lara-dom


Something confusing is happening, maybe I did a rookie mistake?

When submitting the form it redirect to homepage if an error occur. You can visit the following link and just click on submit. Thats a fresh laravel 7 installation. I just took out the input required and added that

@if (session()->has('success'))
<div class="alert alert-success">
    {{ session()->get('success') }}

@if (session('status'))
<div class="alert alert-success" role="alert">
    {{ session('status') }}

@if(count($errors) > 0)
<div class="alert alert-danger">
        @foreach ($errors->all() as $error)
            <li>{!! $error !!}</li>

I have the installation in a cpanel addon subdomain, Is that what cause the problem?

Everything is fine on my localhost.

It must be a cpanel thing

I really need a little hint from an expert


Please sign in or create an account to participate in this conversation.