Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The GET method is not supported for this route. Supported methods: HEAD

Hello i am new to laravel but i can't discover why i can't acess to my default path

My route:

      Route::get('/', 'HomeController@home');

My controller:

<?php

 namespace App\Http\Controllers;

 use Illuminate\Http\Request;

 class HomeController extends Controller
 {

 public function home()
 {
    return view('home.home');
 }
}

My route list

enter image description here

I have try with diferent middlewares and also i have change this api.route i have delete this:

 //Route::middleware('auth:api')->get('/user', function (Request $request) {
  //  return $request->user();
  //});

Please help i am start going crazy.

like image 250
Carlos Avatar asked Mar 02 '23 04:03

Carlos


1 Answers

Solved my same problem just with command:

php artisan route:clear
like image 188
ParisaN Avatar answered Mar 04 '23 16:03

ParisaN