Chron
216
8
Laravel

Form action redirects to a blank page

Posted 1 month ago by Chron

I have these two:

Route::get('account/create', '[email protected]')->name('account.create');
Route::post('account/create', '[email protected]')->name('account.store');
<form method="POST" action="/account/create">
@csrf
    <div class="row">
    <div class="col-md-8">
        <div class="form-group">
            <label for="firstname">Firstname</label>
                <div class="input-group">
                    ......
                </div>
            </div>
        </div>
    </div>
</div>
</form>

Whenever I submit data, it gets redirected to /account/create but a blank page.

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