on-internet
← Community

How to resolve 'Illuminate\Support\Facades\Route' error while debugging in Laravel?

Stack Overflow ·

I've created one controller with web route. If I put a request in browser I am getting my output, but when I tried to debug I am getting a following error in debug console: PHP Fatal error: Uncaught Error: Class 'Illuminate\Support\Facades\Route' not found in /home/payarc/Desktop/myDummy/routes/web.php:21 Stack trace: #0 {main} thrown in /home/payarc/Desktop/myDummy/routes/web.php on line 21 How to resolve this error? web.php <?php use App\Http\Controllers\UserController; use Illuminate\Support\Facades\Route; Route::get('/div',[UserController::class,'dummy']); UserController.php <?php namespac

Comments

Sign in or sign up to comment and upvote.

No comments yet.