title: using lumen 5.2 with blade template engine?
body: <p>I follow the <a href="https://laravel.com/docs/5.2/blade" rel="nofollow">official documentation of laravel</a> to create templates with blade.I'm trying to make my first template but doesn't work.</p>
  
  <p>1)Stored in resources/views/default.blade.php ---></p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
      @include('includes.head')
  &lt;/head&gt;
  &lt;body&gt;
  &lt;div class="container"&gt;
  
      @include('includes.header')
  
  
      &lt;div id="main" class="row"&gt;
  
              @yield('content')
  
      &lt;/div&gt;
  
  &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>2)stored in resources/views/home.blade.php --></p>
  
  <pre><code>@extends('layouts.default')
  @section('content')
      I am the Home Page!
  @endsection
  </code></pre>
  
  <p>3)Stored in boostrap/app.php --></p>
  
  <pre><code>$app-&gt;get('/', function (){
      return view('home');
  });
  </code></pre>
  
  <p>4) localhost:8000/    return this error --></p>
  
  <p>Whoops, looks like something went wrong.
  2/2 ErrorException in FileViewFinder.php line 137: View [layouts.default] not found. (View: /home/vagrant/lumen/resources/views/home.blade.php)</p>
  
  <pre><code>in FileViewFinder.php line 137
  at CompilerEngine-&gt;handleViewException(object(InvalidArgumentException), '1') in PhpEngine.php line 44
  at PhpEngine-&gt;evaluatePath('/home/vagrant/lumen/storage/framework/views/96985f6d91158d600b1d1b64b5a3060d84415fda.php', array('__env' =&gt; object(Factory), 'app' =&gt; object(Application))) in CompilerEngine.php line 59
  at CompilerEngine-&gt;get('/home/vagrant/lumen/resources/views/home.blade.php', array('__env' =&gt; object(Factory), 'app' =&gt; object(Application))) in View.php line 149
  at View-&gt;getContents() in View.php line 120
  at View-&gt;renderContents() in View.php line 85
  at View-&gt;render() in Response.php line 53
  at Response-&gt;setContent(object(View)) in Response.php line 199
  at Response-&gt;__construct(object(View)) in RoutesRequests.php line 643
  at Application-&gt;prepareResponse(object(View)) in RoutesRequests.php line 505
  at Application-&gt;callActionOnArrayBasedRoute(array(true, array(object(Closure)), array())) in RoutesRequests.php line 479
  at Application-&gt;handleFoundRoute(array(true, array(object(Closure)), array())) in RoutesRequests.php line 376
  at Application-&gt;Laravel\Lumen\Concerns\{closure}(object(Request))
  at call_user_func(object(Closure), object(Request)) in Pipeline.php line 52
  at Pipeline-&gt;Laravel\Lumen\Routing\{closure}(object(Request)) in CorsMiddleware.php line 6
  at CorsMiddleware-&gt;handle(object(Request), object(Closure))
  at call_user_func_array(array(object(CorsMiddleware), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 136
  at Pipeline-&gt;Illuminate\Pipeline\{closure}(object(Request))
  at call_user_func(object(Closure), object(Request)) in Pipeline.php line 32
  at Pipeline-&gt;Laravel\Lumen\Routing\{closure}(object(Request))
  at call_user_func(object(Closure), object(Request)) in Pipeline.php line 102
  at Pipeline-&gt;then(object(Closure)) in RoutesRequests.php line 626
  at Application-&gt;sendThroughPipeline(array('App\Http\Middleware\CorsMiddleware'), object(Closure)) in RoutesRequests.php line 382
  at Application-&gt;dispatch(null) in RoutesRequests.php line 327
  at Application-&gt;run() in index.php line 28
  </code></pre>
  
  <p>1/2 InvalidArgumentException in FileViewFinder.php line 137: View [layouts.default] not found.</p>
  
  <pre><code>in FileViewFinder.php line 137
  at FileViewFinder-&gt;findInPaths('layouts.default', array('/home/vagrant/lumen/resources/views')) in FileViewFinder.php line 79
  at FileViewFinder-&gt;find('layouts.default') in Factory.php line 165
  at Factory-&gt;make('layouts.default', array('obLevel' =&gt; '1', '__env' =&gt; object(Factory), 'app' =&gt; object(Application))) in 96985f6d91158d600b1d1b64b5a3060d84415fda.php line 4
  at include('/home/vagrant/lumen/storage/framework/views/96985f6d91158d600b1d1b64b5a3060d84415fda.php') in PhpEngine.php line 42
  at PhpEngine-&gt;evaluatePath('/home/vagrant/lumen/storage/framework/views/96985f6d91158d600b1d1b64b5a3060d84415fda.php', array('__env' =&gt; object(Factory), 'app' =&gt; object(Application))) in CompilerEngine.php line 59
  at CompilerEngine-&gt;get('/home/vagrant/lumen/resources/views/home.blade.php', array('__env' =&gt; object(Factory), 'app' =&gt; object(Application))) in View.php line 149
  at View-&gt;getContents() in View.php line 120
  at View-&gt;renderContents() in View.php line 85
  at View-&gt;render() in Response.php line 53
  at Response-&gt;setContent(object(View)) in Response.php line 199
  at Response-&gt;__construct(object(View)) in RoutesRequests.php line 643
  at Application-&gt;prepareResponse(object(View)) in RoutesRequests.php line 505
  at Application-&gt;callActionOnArrayBasedRoute(array(true, array(object(Closure)), array())) in RoutesRequests.php line 479
  at Application-&gt;handleFoundRoute(array(true, array(object(Closure)), array())) in RoutesRequests.php line 376
  at Application-&gt;Laravel\Lumen\Concerns\{closure}(object(Request))
  at call_user_func(object(Closure), object(Request)) in Pipeline.php line 52
  at Pipeline-&gt;Laravel\Lumen\Routing\{closure}(object(Request)) in CorsMiddleware.php line 6
  at CorsMiddleware-&gt;handle(object(Request), object(Closure))
  at call_user_func_array(array(object(CorsMiddleware), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 136
  at Pipeline-&gt;Illuminate\Pipeline\{closure}(object(Request))
  at call_user_func(object(Closure), object(Request)) in Pipeline.php line 32
  at Pipeline-&gt;Laravel\Lumen\Routing\{closure}(object(Request))
  at call_user_func(object(Closure), object(Request)) in Pipeline.php line 102
  at Pipeline-&gt;then(object(Closure)) in RoutesRequests.php line 626
  at Application-&gt;sendThroughPipeline(array('App\Http\Middleware\CorsMiddleware'), object(Closure)) in RoutesRequests.php line 382
  at Application-&gt;dispatch(null) in RoutesRequests.php line 327
  at Application-&gt;run() in index.php line 28
  </code></pre>