The index purpose fetches every one of the posts through the database and sends the data for the posts.index web page.
Laravel uses this structure to power tailor made apps. It employs the Blade templating engine, https://miriammcup260043.topbloghub.com/35882075/facts-about-react-with-laravel-revealed