Jignesh Rawal Jignesh Rawal - 4 months ago 44
PHP Question

Blade syntax @extends loads second HTML view and then the first HTML view

I am new to laravel and blade template engine.
Issue: file form.blade.php


Loads front/footer.blade.php first and then the contents of front/header.blade.php

Please find attached the snap shot of the View Source.

I have checked few answers in stackoverflow they say about the white space.I dont seem to have any.

Jigneshenter image description here


You cannot @extends from 2 parents. If you want to include another view, you should use @include instead

Like this :