title: Laravel 5.4 - @extends not working
body: <p>I have two main views in Laravel.</p>
  
  <p>Both are called as follows, in web.php:</p>
  
  <pre><code>Route::get('/characters', 'CharacterController@index');
  Route::get('/characters/{char_id}', 'CharacterController@viewCharacter');
  </code></pre>
  
  <p>Here's their function in CharacterController:</p>
  
  <p>/characters:</p>
  
  <pre><code>public function index()
  {
  
  
  
  $characters = Character::userChars();
  
  return view('pages.characters', compact('characters') );
  
  
  }
  </code></pre>
  
  <p>characters/{char_id}:</p>
  
  <pre><code>public function viewCharacter ($char_id)
  
  {
  
      $character = \DB::table('characters')-&gt;where('char_id', $char_id)-&gt;first();
  
      return view('pages.view-character', compact('character') );
  
  
  }
  </code></pre>
  
  <p>/characters works fine. 
  It uses </p>
  
  <pre><code>@extends('layouts.master')
  
  @section('content')
  
  @endsection
  </code></pre>
  
  <p>All the content loads fine and the CSS displays.</p>
  
  <p>However, characters/{char_id} refuses to work correctly.</p>
  
  <p>It displays the content from @extends but will not render the CSS at all.</p>
  
  <p>This is the blade template for characters/{char_id}:</p>
  
  <pre><code>@extends('layouts.master')
  
  @section('content')
  
  &lt;div id="page-wrapper"&gt;
  
              &lt;div class="container-fluid"&gt;
  
                  &lt;!-- Page Heading --&gt;
                  &lt;div class="row"&gt;
                      &lt;div class="col-lg-12"&gt;
                          &lt;h1 class="page-header"&gt;
                              Template &lt;small&gt;Template Page&lt;/small&gt;
                          &lt;/h1&gt;
                          &lt;ol class="breadcrumb"&gt;
                              &lt;li class="active"&gt;
                                  &lt;i class="fa fa-dashboard"&gt;&lt;/i&gt; Template 1
  
                              &lt;/li&gt;
                          &lt;/ol&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
  
  
  
  
  
  
  
  
              &lt;/div&gt;
  &lt;/div&gt;
  
  @endsection
  </code></pre>
  
  <p>It is identical to the view that /characters uses, except for what's in the content section.</p>
  
  <p>Here is "master.blade.php":
  <a href="https://pastebin.com/kjnxc0ms" rel="nofollow noreferrer">https://pastebin.com/kjnxc0ms</a></p>
  
  <p>Thanks!</p>