title: Heredoc in Laravel database seed
body: <p>I'm trying to create a database seed in laravel that uses a heredoc to set an xml structure into a variable and then use that variable as one of the values in the seed:</p>
  
  <p>
  
  <pre><code>class CodeTableSeeder extends Seeder {
  
      public function run()
      {
  
          DB::table('code')-&gt;delete();
  
          $xml = &lt;&lt;&lt;RawXML
  &lt;?xml version="1.0"?&gt;
  &lt;fmxmlsnippet type="FMObjectList"&gt;
      ...
  RawXML;
  
          Code::create(array('user_id' =&gt; 1, 'code' =&gt; $xml));
      }
  }
  </code></pre>
  
  <p>When I run the seeder, I get an error message from artisan: </p>
  
  <pre><code>Seeded: UserTableSeeder
  
    [ErrorException]                 
    Undefined variable: searchValue  
  </code></pre>
  
  <p>I know that <code>searchValue</code> is within the xml code:</p>
  
  <pre><code>    &lt;Script includeInMenu="True" runFullAccess="False" id="1" name="Perform a Find (searchValue, searchField, LayoutName)"&gt;
  </code></pre>
  
  <p>It seems like the database seeder is reading the xml document as code instead of a heredoc string. Is there a way of preventing the seeder from reading the xml? Is there a better way of including the xml in the seed? </p>
  
  <p>It's not imperative that the xml be included in the seed, but it would be nice to keep an extra step out of the setup process for other devs.  </p>