View/Template in Laravel and load assets files css, js, images etc and external template like Header and Footer

‘resources\views’ folder is for all templates with the extension .blade.php (e.g. xyz.blade.php) .blade is the template of laravel.

 

Include external file like header or footer in your template:

‘layout.header’ : layout is folder name (‘resources/views/layout’) , header is file name (‘resources/views/layout/header.blade.php’)

 

Path and location of assets file like css, js, images:

All assets files should be under the public folder, so I created a folder under public (public/assets) and kept my files in this folder. (You can create as many folder structures as you want under the public folder).

 

 

 

 

Leave a Reply

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