Support the ongoing development of Laravel.io →
Views Blade
Last updated 2 years ago.
0

why not you are using your own code: create header.blade.php define your html code footer.blade.php define your html code

and use it in anypage like index.blade.php

@include('header') and your html code for index page @include('footer')

0

@extends('index') @section('content') <p style="color:blue">hdsaaaaaaaaadsaaaaaaaaaa</p> @stop //views/index.blade.php this is index.blade.php //some codes then @yield('content')

if i understand what u r saying ; you have to create another file then u can use the @extend and call it from the path at which it is

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.