title: Laravel 5 syntax error, unexpected 'extends' (T_EXTENDS)
body: <p>This is the code in my controller: </p>
  
  <pre><code>class ArticlesController extends Controller {
      public function index()
      {
          $articles = Article::all();
          return view('articles.index',compact('articles'));
      }
  
  }
  </code></pre>
  
  <p>My App.blade.php</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
      &lt;head&gt;
          &lt;title&gt;Title&lt;/title&gt;
          &lt;meta charset="UTF-8"&gt;
          &lt;meta name=description content=""&gt;
          &lt;meta name="viewport" content="width=device-width, initial-scale=1.0"&gt;
          &lt;!-- Bootstrap CSS --&gt;
          &lt;link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css" rel="stylesheet" media="screen"&gt;
      &lt;/head&gt;
      &lt;body&gt;
          &lt;div class="container"&gt;
              @yield('content')
          &lt;/div&gt;
  
          @yield('footer')
          &lt;!-- jQuery --&gt;
          &lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"&gt;&lt;/script&gt;
          &lt;!-- Bootstrap JavaScript --&gt;
          &lt;script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"&gt;&lt;/script&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>And index.blade.php</p>
  
  <pre><code>&lt;?php
  
  @extends('app')
  
  @section('content')
      &lt;h1&gt;Articles&lt;/h1&gt;
  @stop
  </code></pre>
  
  <p>This is the error that I get: </p>
  
  <pre><code>FatalErrorException in 5f3efcdeb3d9812b22b5491d0cba9f22 line 3:
  syntax error, unexpected 'extends' (T_EXTENDS)
  </code></pre>
  
  <p>Please help.</p>
  
  <hr>
  
  <p><strong>Solution listed below</strong>. While the issue is silly, and easy to fix - it's hard to find a straight answer via Google Search. Hence keeping this question. </p>