title: Route [settings] not defined. (View: C:\xampp\htdocs\laravel\UserManagementSystem\resources\views\layouts\app.blade.php)
body: <blockquote>
    <p>Route [settings] not defined. (View:
    C:\xampp\htdocs\laravel\UserManagementSystem\resources\views\layouts\app.blade.php)</p>
  </blockquote>
  
  <p>I wanted to create a user profile updation. i created the blade fields and all necessary fields but when i run the program it shows the error</p>
  
  <p>This is my web.php  </p>
  
  <pre><code>&lt;?php
  Route::get('/', function () {
  return view('welcome');
  });
  
  Auth::routes();
  
  Route::get('/home', 'HomeController@index')-&gt;name('home');
  
  Route::group( ['middleware' =&gt; ['auth']], function() {
  Route::resource('users', 'UserController');
  
  Route::resource('roles', 'RoleController');
  Route::resource('posts', 'PostController');
  Route::resource('settings', 'SettingsController');
  });
  </code></pre>
  
  <p>And my app.blade.php is</p>
  
  <pre><code>&lt;a href="{{ route('settings') }}"
  onclick="event.preventDefault();                                                 
  document.getElementById('settings-form').submit();"&gt;
  &lt;i class="glyphicon glyphicon-log-out"&gt;&lt;/i&gt; Settings
  &lt;/a&gt;
  
  &lt;form id="settings-form" action="{{ route('settings') }}" method="POST" 
  style="display: none;"&gt;
  {{ csrf_field() }}
  &lt;/form&gt;
  </code></pre>
  
  <p>Any one please help me. I am stuck with my work</p>