The index purpose fetches the many posts in the database and sends the information to your posts.index page.
Laravel employs this construction to electricity custom applications. It uses the Blade templating engine, https://laraaqxy502227.pointblog.net/a-review-of-laravel-swagger-71071654