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
0 comments:
Post a Comment