Hello,
You can first refer how to Create controller through cmd promt in Laravel.
Then after controller is created you can add simple function to that controller as shown below:
![](https://www.edureka.co/community/?qa=blob&qa_blobid=10364733337834040640)
Then go to resource and the web.php and simply add route to that page as follow:
![](https://www.edureka.co/community/?qa=blob&qa_blobid=9794679769079222205)
Here {id} will access the passed parameter in url of browser and then it passed this parameter to controller and controller will print the data