Answers for "Error: Class 'Route' not found in"

PHP
1

laravel route target class not found

Routing namespaces have been updated on Laravel 8.X

On your router, you should define:
use App\Http\Controllers\TestController;

And then, declare:
Route::get('test',[TestController::class, 'test']);
Posted by: Guest on May-03-2021
0

Class 'App\Http\Controllers\Admin\Route' not found

use Illuminate\Routing\Route;
Posted by: Guest on February-23-2021

Code answers related to "Error: Class 'Route' not found in"

Browse Popular Code Answers by Language