DEV Community

Discussion on: Setting up Vue in Laravel 8

Collapse
 
yfktn profile image
yfktn

Hi, I got an error with this code, because Laravel on the RouteServiceProvider, while reading web.php to get our Route, it has already set up the namespace for us.

So, for this code at web.php:

Route::get('/{any?}', App\Http\Controllers\PagesController::class);
Enter fullscreen mode Exit fullscreen mode

need change to:

Route::get('/{any?}', 'PagesController');
Enter fullscreen mode Exit fullscreen mode

Thank you for the invoke parameters information.