title: web.php seems to be okay but BindingResolutionException Target class does not exist. I am looking for a way to remove extra junk rubbish path
body: <p>I use Laravel 6.2</p>
  <p>web.php seems to be okay however, BindingResolutionException Target class  [App\Http\Controllers\App\Stack\Http\Controllers\HomeController] does not exist.</p>
  <p>I think &quot;App\Http\Controllers&quot; is reductant .
  How should I remove this extra junk path?</p>
  <p>error happens.</p>
  <p>Where should fix it?</p>
  <p>web.php</p>
  <pre><code>&lt;?php
  
  Route::get('/', function () {
      return redirect('/home');
  });
  
  
  Auth::routes();
  
  Route::get('/home', 'HomeController@index')-&gt;name('home');
  </code></pre>
  <p>HomeController.php</p>
  <pre><code>&lt;?php
  
  namespace App\Stack\Http\Controllers;
  
  use App\Http\Controllers\Controller;
  use App\Stack\Http\Middleware\SetDefaultLayoutForUrls;
  use Illuminate\Http\Request;
  
  class HomeController extends Controller
  {
      /**
       * Create a new controller instance.
       *
       * @return void
       */
      public function __construct()
      {
          $this-&gt;middleware(['auth', SetDefaultLayoutForUrls::class]);
      }
  
      /**
       * Show the application dashboard.
       *
       * @return \Illuminate\Contracts\Support\Renderable
       */
      public function index()
      {
          return view('home');
      }
  
  </code></pre>
  <p>the file is located at
  {thisProject}/app/Http/Controllers</p>