Answers for "404 not found but route exist in laravel"

1

laravel route target class not found

Routing namespaces have been updated on Laravel 8.X

On your router, you should define:
use AppHttpControllersTestController;

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

Method IlluminateRoutingRoute::get does not exist

<?php
//This import is wrong:

	use IlluminateRoutingRoute;

//You actually don't have to import any class as Laravel registers a global alias Route.
//If you want to import the right class, that would be:

	use IlluminateSupportFacadesRoute;
Posted by: Guest on October-15-2020

Code answers related to "404 not found but route exist in laravel"

Browse Popular Code Answers by Language