Showing posts with label routes. Show all posts
Showing posts with label routes. Show all posts

Laravel : How to call controller index function using routes

In this tutorial learn how to call controller from URL using route/web.php or call index function of controller from route, In Laravel its easy to create controller and view file but its understand to how to call controller from url, so, here routes/web.php files play the role between url and controller to access controller's method/function from url.

Let's go with the example using controller name is category

1. Create controller  in Controllers case sensitive name so, create like a example given example :CategoryController.php


//controller path<project_name>/app/Http/Controllers/<controller_name.php>

Example category controller



how to call ssh from vs code

 To call SSH from VS Code, you can use the built-in Remote Development extension. This extension allows you to open a remote folder or works...