title: Target class [AdminController] does not exist
body: <p><a href="https://i.stack.imgur.com/r6c7q.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/r6c7q.png" alt="enter image description here" /></a>I have this error when a user returns from login to the admin page (i.e <a href="http://127.0.0.1:8000/admin" rel="nofollow noreferrer">http://127.0.0.1:8000/admin</a>), it should throw a 403 error if he/she doesn't sign in as the admin (i.e if he is not the admin)</p>
  <p>Admin also experience this same error</p>
  <p>Here's My Route
  Laravel Version: 9.24.0</p>
  <p>Please anyone should help
  Here are my codes on web.php</p>
  <pre><code>&lt;?php
  
  use Illuminate\Support\Facades\Route;
    
  
  /*
  |--------------------------------------------------------------------------
  | 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 &quot;web&quot; middleware group. Now create something great!
  |
  */
  
  Route::get('/', function () {
      return view('welcome');
  });
  
  Route::get('/dashboard', function () {
      return view('dashboard');
  })-&gt;middleware(['auth'])-&gt;name('dashboard');
  
  Route::middleware(['auth','admin'])-&gt;name('admin.')-&gt;prefix('admin')-&gt;group(function() {
      Route::get('/', [AdminController::class, 'index'])-&gt;name('index');
  });
  require __DIR__.'/auth.php';
  </code></pre>