title: Laravel 4 Blade @include variable
body: <p>I was trying to do <code>include</code> with Laravel blade, but the problem is it can't pass the variable. Here's my example code:</p>
  
  <p>file_include.blade.php</p>
  
  <pre><code>&lt;?php
    $myvar = "some text";
  </code></pre>
  
  <p>main.blade.php</p>
  
  <pre><code>@include('file_include')
  {{$myvar}}
  </code></pre>
  
  <p>When I run the file, it return the error "Undefined variable: myvar". So, how can I pass the variable from the include file to the main file?</p>
  
  <p>Thank you.</p>