title: Target class [UserController] does not exist
body: <p>I have started working on Laravel recently and I have installed Laravel Framework 8.5.0.</p>
  <p>Following is my controller &quot;UserController.php&quot;</p>
  <pre><code>namespace App\Http\Controllers;
  
  use Illuminate\Http\Request;
  
  class UserController extends Controller
  {
      //
  
  
      public function index(){
          return &quot;hello world&quot;;
      }
  }
  </code></pre>
  <p>and here's my web.php in routes</p>
  <pre><code>
  Route::get('/users', 'UserController@index');
  
  
  </code></pre>
  <p>When ever I try accessing <a href="http://127.0.0.1:8000/users" rel="nofollow noreferrer">http://127.0.0.1:8000/users</a>, It just hits me with following error</p>
  <blockquote>
  <p>Illuminate\Contracts\Container\BindingResolutionException</p>
  <p>Target class [UserController] does not exist.</p>
  </blockquote>