Jignesh Rawal Jignesh Rawal -4 years ago 139
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

Answer Source

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

Like this :

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download