title: Laravel Target class [App\Http\Controllers\HomeController] does not exist
body: <p>I was making a small blog site, but got this error. Is there anyone who can help? Currently, my homepage page that I defined in view is not working.
  My homepage.blade.php page, by the way, inside the front folder is homepage.blade.</p>
  <p>my web.php</p>
  <pre><code>&lt;?php
  
  use Illuminate\Support\Facades\Route;
  use App\Http\Controllers\Front\HomeController;
  
  
  Route::get('/',&quot;HomeController@index&quot;);
  
  
  -----------------------------------------------
  
  here is my controller
  
  &lt;?php
  
  namespace App\Http\Controllers\Front;
  use App\Http\Controllers\Front\HomeController;
  use App\Http\Controllers\Controller;
  use Illuminate\Http\Request;
  use App\Models\Category;
  
  class HomeController extends Controller
  {
      public function index(){
  
          $data['categories']=Category::inRandomOrder()-&gt;get();
   
         return view('front.layouts.homepage',$data);
       }
  }
  
  
  
  </code></pre>