title: Target class [Admin\AdminController] does not exist
body: <p>I'm developing a website using Laravel 8 by watching youtube tutorial, and I encounter an error message and don't know how to solve it. I tried to change the namespace but it didn't work.
  <a href="https://i.stack.imgur.com/7Z8g9.png" rel="nofollow noreferrer">ERROR MESSAGE PICT</a></p>
  <p>My AdminController.php code</p>
  <pre><code>&lt;?php 
  
  namespace App\Http\Controllers\Admin;
  
  use App\Http\Controllers\Controller;
  use Illuminate\Http\Request;
  
  class AdminController extends Controller
  {
     public function dashboard(){
         return view('admin.admin_dashboard');
     }
  }
  </code></pre>
  <p>And my 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');
  });
  
  Auth::routes();
  
  Route::get('/home', [App\Http\Controllers\HomeController::class, 'index'])-&gt;name('home');
  
  Route::prefix('/admin')-&gt; namespace ('Admin')-&gt; group (function(){
     //All the admin roles will be defined here
     Route::get('dashboard','AdminController@dashboard');
  });
  </code></pre>
  <p>can anyone help me to solve this? thanks.</p>