title: URL routing with namespace not working properly - Laravel 8
body: <p>I've run into a problem with the updated version of Laravel and the new routing.
  The route with the resources works just fine and uses the correct namespace, the problem is with the direct route &quot;users/table&quot;, it's not using any namespace and returns <strong>&quot;Target class [UserController] does not exist.&quot;</strong>
  .</p>
  <p>When I apply the full controller namespace and class name it works. I've modified my RouteResourceProvider.php and it's loading the default namespace on boot.</p>
  <p>My question is why the resources method works but for the custom route, I have to specify the entire namespace inside the route group with an already set namespace?</p>
  <pre><code>Route::group(['prefix' =&gt; 'admin', 'as' =&gt; 'admin.', 'namespace' =&gt; 'Admin'], function () {
      Route::post('users/table', [UserController::class, 'table']);
      ...
      Route::resources([
          'users' =&gt; UserController::class,
          ...
      ]);
  });
  </code></pre>