Creating View in Laravel

In this lesson we will see how to create a controller in Larevel and then create a view to show data with action controller

Now we will first create a controller called BookController

You can run following command inside the terminal

This will create the following code

Now I will create the action controller to load the view by passing array

Now you can create the index.blade.php file inside the resources>view>book folder

Finally you can see the following output in your

Leave a Reply

Your email address will not be published. Required fields are marked *