php - Blade syntax @extends loads second HTML view and then the first HTML view -
i new laravel , blade template engine. issue: file form.blade.php
@extends('front.header') @extends('front.footer')
loads front/footer.blade.php first , contents of front/header.blade.php
please find attached snap shot of view source.
i have checked few answers in stackoverflow white space.i dont seem have any.
you cannot @extends 2 parents. if want include view, should use @include instead
like :
@include('front.header') content @include('front.footer') 
Comments
Post a Comment