It's actually the other way around. You don't include the template but you let your home or news template extend the index template. Check out http://laravel.com/docs/5.1/blade#template-inheritance
So basically you say
return view('home');
and inside your home.blade.php you say
@extends('index')
@section('content')
<p>Hi Mum</p>
@endsection
And inside your index.blade.php you say
<html>
<head></head>
<body>
@yield('content')
</body>
</html>
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community