Hey kartik
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:
Here we are printing 100 user via a controller.
so now we have to set route for controller in order to do this go to routes and the web.php and then form a route method for the controller as shown below:
Here first parameter is the routing name and second parameter is the page name i.e Users.php and index is the function name of users/php page
thank you!!