I got confuse and I got an error, why does my routing process not work, The error gives me Route [index] not defined, but on other hand I already defined the index to HomeController, take a look at my process that I did,
Note: I used laravel version: 5.8*
- I create a index.blade.php
- Add the routes to the web.php and I used this code
`Route::get('/index', 'HomeController@index');
- I add the public function index to the HomeController
Web.php
Route::get('/index', 'HomeController@index');
HomeController
public function index()
{
return view('index');
}
My URL:
Error:


URLthat you called foit - Bhargav Chudasama/in route. write route like this:Route::get('index', 'HomeController@index')->name('homeIndex');. and give route in your blade file like this :{{ route('homeIndex') }}. - Bhoomi Patel