title: laravel on apache vs php artisan serve
body: <p>When running test php file on <strong>apache</strong> server, with the following route:</p>
  
  <pre><code>Route::get('/', function()
  {
      $name='some_name';
      return View::make('index')-&gt;with('name',$name);
  });
  </code></pre>
  
  <p>And my view code is simple:</p>
  
  <pre><code>&lt;?= $name ?&gt;
  </code></pre>
  
  <p>Or with blade:</p>
  
  <pre><code>{{ $name }}
  </code></pre>
  
  <p>I get no variable <strong>$name</strong> on the screen, when I open index.php file. But when I run this with <strong>php artisan serve</strong> of built in <strong>php -S server</strong>  there is a content of variable on the page.I suppose it is something with apache settings. 
  There is no <strong>error logs</strong> in apache log file.</p>
  
  <p>Can someone help.</p>