Super Simple Laravel 5.x Layout

Create folder structure like this

laravel-view-structure
Laravel View Structure

On the layouts folder create main layout named it master.blade.php, and copy paste this code

On partials folder create new file named it header-media.blade.php, and copy paste this code

On partials folder create new file named it footer.blade.php, and copy paste this code

On modules/user folder create 2 files named it form.blade.php and index.blade.php

open file form.blade.php then copy this code

open file index.blade.php then copy this code

from your controller call the view like this

Ok, That’s its! Pretty simple right? See you in next tutorials.

Leave a Reply

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