How to design template in Laravel-part1

Go to “app->view” and crate folder template



Now create template.bade.php
And create header.blade.php and footer.blade.php

Header.blade.php:


 <!DOCTYPE html>
 <html>
    <head>
            <title>My Laravel Project</title>
    </head>
   <body>

Footer.blade.php:

   </body>
 </html>
    

Template.blabe.php:




 @include('template.header')
 @yield('content')
 @include('template.footer')

Helo.blade.php:

@extends('template.template')
@section('content')
My content ...............
@stop

Now show your project



Share on Google Plus

About Samsul Hoque

This is a short description in the author block about the author. You edit it by entering text in the "Biographical Info" field in the user admin panel.
    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment