Answer the question
In order to leave comments, you need to log in
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
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 questionAsk a Question
731 491 924 answers to any question