title: Passing multiple variables to a view in laravel?
body: <p>I retrieved those from the database and assigned them to variables, but i am not able to pass both of them to the view.</p>
  
  <pre><code>$Posts = posts::find($id);
  
  $image = images::find($id);
  </code></pre>
  
  <p>I tried passing them both in an array but haven't had luck.
  tried this as well         </p>
  
  <pre><code>return View::make('Index',['x_var' =&gt; $Posts, 'y_var' =&gt; $image]);
  </code></pre>
  
  <p>In the view it can only recognise the <code>x_var</code> and when i use the <code>y_var</code> the page crashes.</p>