title: Route [admin.settings.edit] not defined laravel
body: <p>this is my web route php:</p>
  
  <pre><code>Route::get('settings', 'Settings\SettingsController@edit')-&gt;name('admin.settings.edit');
  </code></pre>
  
  <p>and I call this route name like below:</p>
  
  <pre><code>            &lt;a href="{{ route('admin.settings.edit') }}" class="nav-link "&gt;
                  &lt;span class="title"&gt;Settings&lt;/span&gt;
              &lt;/a&gt;
  </code></pre>
  
  <p>but I got this error:</p>
  
  <blockquote>
    <p>Route [admin.settings.edit] not defined. (View:
    C:\xampp7\htdocs\template\resources\views\layouts\admin\sidebar.blade.php)
    (View:
    C:\xampp7\htdocs\template\resources\views\layouts\admin\sidebar.blade.php)
    (View:
    C:\xampp7\htdocs\template\resources\views\layouts\admin\sidebar.blade.php)</p>
  </blockquote>
  
  <p><code>rouet:list</code> returns this error message: `Class App\Http\Controllers\Admin\Settings\SettingsController does not exist</p>
  
  <p>but I have this controller:</p>
  
  <p>
  
  <pre><code>namespace App\Http\Controllers\Admin\SettingsController;
  
  use App\Http\Controllers\Controller;
  use App\Shop\Brands\Repositories\BrandRepository;
  use App\Shop\Brands\Repositories\BrandRepositoryInterface;
  use App\Shop\Brands\Requests\CreateBrandRequest;
  use App\Shop\Brands\Requests\UpdateBrandRequest;
  
  class SettingsController extends Controller
  {
  
  
      public function __construct(){}
  
  
      public function index()
      {}
  
  
      public function create(){}
  
      public function store(){}
  
      /**
       *
       * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
       */
      public function edit()
      {
          dd("milad");
          return view('admin.brands.edit', ['brand' =&gt; '']);
      }
  
      /**
       * @param UpdateBrandRequest $request
       * @param $id
       *
       * @return \Illuminate\Http\RedirectResponse
       * @throws \App\Shop\Brands\Exceptions\UpdateDiscountCodesErrorException
       */
      public function update(UpdateBrandRequest $request, $id)
      {
  //        $brand = $this-&gt;brandRepo-&gt;findBrandById($id);
  //
  //        $brandRepo = new BrandRepository($brand);
  //        $brandRepo-&gt;updateBrand($request-&gt;all());
  //
  //        return redirect()-&gt;route('admin.brands.edit', $id)-&gt;with('message', 'Update successful!');
      }
  
  
      public function destroy()
      {}
  }
  </code></pre>
  
  <p>`</p>
  
  <p><strong>updated</strong></p>
  
  <p>all my web route php:</p>
  
  <pre><code>/**
   * Admin routes
   */
  Route::namespace('Admin')-&gt;group(function () {
      Route::get('admin/login', 'LoginController@showLoginForm')-&gt;name('admin.login');
      Route::post('admin/login', 'LoginController@login')-&gt;name('admin.login');
      Route::get('admin/logout', 'LoginController@logout')-&gt;name('admin.logout');
  });
  Route::group(['prefix' =&gt; 'admin', 'middleware' =&gt; ['employee'], 'as' =&gt; 'admin.' ], function () {
      Route::namespace('Admin')-&gt;group(function () {
          Route::group(['middleware' =&gt; ['role:admin|superadmin|clerk, guard:employee']], function () {
              Route::get('/', 'DashboardController@index')-&gt;name('dashboard');
              Route::namespace('Products')-&gt;group(function () {
                  Route::resource('products', 'ProductController');
                  Route::get('remove-image-product', 'ProductController@removeImage')-&gt;name('product.remove.image');
                  Route::get('remove-image-thumb', 'ProductController@removeThumbnail')-&gt;name('product.remove.thumb');
              });
              Route::namespace('Customers')-&gt;group(function () {
                  Route::resource('customers', 'CustomerController');
                  Route::resource('customers.addresses', 'CustomerAddressController');
              });
              Route::namespace('Categories')-&gt;group(function () {
                  Route::resource('categories', 'CategoryController');
                  Route::get('remove-image-category', 'CategoryController@removeImage')-&gt;name('category.remove.image');
              });
              Route::namespace('Orders')-&gt;group(function () {
                  Route::resource('orders', 'OrderController');
                  Route::resource('order-statuses', 'OrderStatusController');
                  Route::get('orders/{id}/invoice', 'OrderController@generateInvoice')-&gt;name('orders.invoice.generate');
              });
              Route::resource('addresses', 'Addresses\AddressController');
              Route::resource('countries', 'Countries\CountryController');
              Route::resource('countries.provinces', 'Provinces\ProvinceController');
              Route::resource('countries.provinces.cities', 'Cities\CityController');
              Route::resource('couriers', 'Couriers\CourierController');
              Route::resource('attributes', 'Attributes\AttributeController');
              Route::resource('attributes.values', 'Attributes\AttributeValueController');
              Route::resource('brands', 'Brands\BrandController');
              Route::resource('discounts', 'DiscountCodes\DiscountCodesController');
              Route::resource('comments', 'Comments\CommentsController');
              Route::resource('messages', 'Messages\MessagesController');
              Route::resource('pages', 'Pages\PagesController');
              Route::resource('blog-categories', 'BlogCategories\BlogCategoriesController');
              Route::resource('blog-posts', 'BlogPosts\BlogPostsController');
              Route::resource('scores-categories', 'ScoresCategories\ScoresCategoriesController');
              Route::resource('scores-levels', 'ScoresLevels\ScoresLevelsController');
              Route::resource('affiliate-categories', 'AffiliateCategories\AffiliateCategoriesController');
              Route::resource('products-codes', 'ProductsCodes\ProductsCodesController');
              Route::get('settings', 'SettingsController@edit')-&gt;name('admin.settings.edit');
  
          });
  </code></pre>