getting error when on adding new route from new or old controller. from php artisan route:list giving error
ReflectionException class 'App\Http\Controller\Classname not exist whether it exist and existing routes with same class working properly. running on xampp php 7.2
Web.php
Route::get('/selcetPlan','PlanStatusContoller@selectPlan');
PlanStatusController.php
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Plandetails;
class PlanStatusController extends Controller
{
public function selectPlan(){
$plande=Plandetails::all();
return view('panel.planselect')->with('plan',$plande);
}
}
'''
php artisan route:list
giving below error in cli
ReflectionException : Class App\Http\Controllers\PlanStatusContoller does not exist at C:\xampp\htdocs\Project\vendor\laravel\framework\src\Illuminate\Container\Container.php:790
786| if ($concrete instanceof Closure) {
787| return $concrete($this, $this->getLastParameterOverride());}
789|
> 790| $reflector = new ReflectionClass($concrete);
Exception trace:
1 ReflectionClass::__construct("App\Http\Controllers\PlanStatusContoller")
C:\xampp\htdocs\Project\vendor\laravel\framework\src\Illuminate\Containe
r\Container.php:790
2 Illuminate\Container\Container::build("App\Http\Controllers\PlanStatusCont
oller") C:\xampp\htdocs\Project\vendor\laravel\framework\src\Illuminate\Containe
r\Container.php:667
Please use the argument -v to see more details.