laravel 5.2 blade template failing to parse
<p>I have an issue with a laravel 5.2 site I'm working on. I have a master (<code>main</code>) layout that I'm using to set the main elements of the page up, and it's being used in the welcome page (that extends it) with no problem.</p>

<p>However, in some of the subpages I keep getting an error from the compiled view:</p>

<p><code>&lt;?php echo $__env-&gt;make('layouts.main, array_except(get_defined_vars(), array('__data', '__path')))-&gt;render(); ?&gt;</code></p>

<p>The error is <code>Parse error: syntax error, unexpected '__data' (T_STRING), expecting ',' or ')'</code></p>

<p>There's literally nothing in my view except the title and the main content element, where I'm trying to dump a variable. The error is coming from Laravel, not my code (as far as I can tell).</p>

<p>This is the whole view:</p>

<pre><code>@extends('layouts.main)

@section('title', 'another page!')

@section('content')
{{dd($myvar)}}
@endsection
</code></pre>

<p>Any ideas why this is happening?</p>