title: Laravel : Class controller does not exist
body: <p>I have created a simple controller and define a function. But when i run this it returns an error that controller does not exist.</p>
  
  <p>In my web.php assign a route.</p>
  
  <pre><code>&lt;?php
    Route::get('/', function () { return view('front.welcome'); });
    Route::get('plan','PlanController@PlanActivity')-&gt;name('plan');
  </code></pre>
  
  <p>On otherside in my controller my code:</p>
  
  <pre><code>&lt;?php
   namespace App\Http\Controllers\Front;
   use App\Http\Controllers\Controller as BaseController;
   use Illuminate\Http\Request;
  
  class PlanController extends Controller {
  
  public function PlanActivity()
  {
      dd("hello");
      //return view('admin.index');
  }
  }
  </code></pre>
  
  <blockquote>
    <p>This controller created on App\Http\Controllers\Front - on front folder </p>
  </blockquote>
  
  <p>Error : </p>
  
  <blockquote>
    <p>ReflectionException (-1)
    Class App\Http\Controllers\PlanController does not exist</p>
  </blockquote>