lara-dom
2 months ago
439
18
Laravel

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

Posted 2 months ago by lara-dom

0

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') }}
</div>
@endif


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



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



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

Thanks

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