Answers for "target class does not exist laravel 6 route"

PHP
8

laravel target class does not exist

Uncomment this line in app>>provider>>RouteServiceProvider.php file
// protected $namespace = 'App\\Http\\Controllers';
Posted by: Guest on January-08-2021
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

Code answers related to "target class does not exist laravel 6 route"

Browse Popular Code Answers by Language