I
I
igordata12020-05-30 17:43:15
Laravel
igordata1, 2020-05-30 17:43:15

Why writes 404 error and how to fix it?

settings.blade.php

<form action="settings/store" method="post">
    <input type="text" name="age" placeholder="Укажите возраст">
    <input type="text" name="fio" placeholder="Укажите ФИО">
    <input type="textarea" name="about" placeholder="описание">
    <input type="submit" value="Отправить">
</form>

routes
Route::group(['middleware' => 'auth'], function() {
    Route::get('/settings', '[email protected]');
    Route::post('/settings/store', '[email protected]');
});

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question