title: Target class [App\Http\Controllers\Admin\Category\CategoryController] does not exist
body: <p>I am getting really confused on how namespace and use are being used here to reference my <code>CategoryController</code>. I am using laravel 8. Any guidance would be greatly appreciated!</p>
  <p><img src="https://i.stack.imgur.com/sJBnp.png" alt="enter image description here" /></p>
  <p>My route uses resource and that seems to be ok.
  web.php:</p>
  <pre><code>namespace App\Http\Controllers\Admin\Category;
  Route::get('/admin/categories', [CategoryController::class, 'category'])-&gt;name('categories');
  </code></pre>
  <p>My Category Controller is <code>App\Http\Controllers\Admin\Category\CategoryController.php</code> as shown here is my folder structure:</p>
  <p><img src="https://i.stack.imgur.com/qCYAB.png" alt="enter image description here" /></p>
  <p>CategoryController.php:</p>
  <pre><code>namespace App\Http\Controllers;
  
  use App\Http\Controllers\Controller;
  use Illuminate\Http\Request;
  
  class CategoryController extends Controller
  {
      public function __construct()
      {
          $this-&gt;middleware('auth:admin');
      }
  
      public function category(){
          echo &quot;Hello Category&quot;;
      }
  
  }
  </code></pre>