0

Getting this error when accessing default '/' route on laravel 8 after doing route:cache

Symfony\Component\HttpKernel\Exception\MethodNotAllowedHttpException The GET method is not supported for this route. Supported methods: HEAD.

Any idea why? all routes except this one is working :D

Route::get('/', function () {
  return view('welcome');
});

Route::middleware(['auth:sanctum', 'verified'])->get('/dashboard', function () {
  return view('dashboard');
})->name('dashboard');

even api.php route is working.

can't find any solution online.

Thank you

0 Answers0