Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

app/Http/Controllers/Admin/ReportController is missing #15

Open
BlueJ-D opened this issue Nov 1, 2024 · 0 comments
Open

app/Http/Controllers/Admin/ReportController is missing #15

BlueJ-D opened this issue Nov 1, 2024 · 0 comments

Comments

@BlueJ-D
Copy link

BlueJ-D commented Nov 1, 2024

Ran: php artisan route:list --json in project folder, and received the below error.


   ReflectionException

  Class "App\Http\Controllers\Admin\ReportController" does not exist

  at Laravel-Ecommerce\vendor\laravel\framework\src\Illuminate\Foundation\Console\RouteListCommand.php:234
    230▕             if ($this->isFrameworkController($route)) {
    231▕                 return false;
    232▕             }
    233▕
  ➜ 234▕             $path = (new ReflectionClass($route->getControllerClass()))
    235▕                                 ->getFileName();
    236▕         } else {
    237▕             return false;
    238▕         }

File not found at: app/Http/Controllers/Admin

routes/admin.php:

16: use App\Http\Controllers\Admin\ReportController;
73: Route::get('/report', [ReportController::class, 'index'])->name('report');

After commenting out above 2 lines:
Class "App\Http\Controllers\Admin\SmptController" does not exist

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant