I am using Laravel 6.0 and I try to list all my routes with
php artisan route:list
It fails and returns:
Illuminate\Contracts\Container\BindingResolutionException : Target class [App\Http\Controllers\Admin\DashboardadController] does not exist.
at D:\xampp\htdocs\myws\vendor\laravel\framework\src\Illuminate\Container\Container.php:805
801|
802| try {
803| $reflector = new ReflectionClass($concrete);
804| } catch (ReflectionException $e) {
> 805| throw new BindingResolutionException("Target class [$concrete] does not exist.", 0, $e);
806| }
807|
808| // If the type is not instantiable, the developer is attempting to resolve
809| // an abstract type such as an Interface or Abstract Class and there is
Exception trace:
1 Illuminate\Foundation\Console\RouteListCommand::Illuminate\Foundation\Console\{closure}(Object(Illuminate\Routing\Route))
[internal]:0
2 ReflectionException::("Class App\Http\Controllers\Admin\DashboardadController does not exist")
D:\xampp\htdocs\myws\vendor\laravel\framework\src\Illuminate\Container\Container.php:803
My Route
Route::group([ 'as'=>'admin.', 'prefix'=>'admin', 'namespace'=> 'Admin', 'middleware' => ['auth','admin']],
function(){
Route::get('dashboard', 'DashboardadController@index')->name('dashboard');
});
Route::group([ 'as'=>'author.', 'prefix'=>'author', 'namespace'=> 'Author', 'middleware' => ['auth','author']],
function(){
Route::get('dashboard', 'DashboardauController@index')->name('dashboard');
});
My RouteServiceProvider
protected $namespace = 'App\Http\Controllers';
Any idea how I could debug this issue?
Many thanks in advance!