I
I
igordata12020-06-26 10:00:34
Laravel
igordata1, 2020-06-26 10:00:34

How to fix InvalidArgumentException Route [settings] not defined. error?

I have a form and it says this when submitting

<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::get('/', function () {
    return view('welcome');
});

Route::group(['middleware'	=>	'auth'], function(){

    Route::get('/settings', '[email protected]');
//    dd("stop");
    Route::post("/settings/store", "[email protected]")->name("settings.store");
});

Auth::routes();

Route::get('/home', '[email protected]')->name('home');

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Ukolov, 2020-06-26
@igordata1

Route [ settings ] not defined.

->name("settings.store")
->name('home')

How to fix the error?
Specify a valid route name or give the desired route a name.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question