title: Laravel5 how to pass array to view
body: <p>I am confuse as how to pass variable from controller to view.  I know there is a lot about this already on stockoverflow but unable to find one that works, please point me in the right direction. Thank you. </p>
  
  <p>CONTROLLER</p>
  
  <pre><code> class StoreController extends Controller
  
   {
      public function index()
      {
          $store = Store::all(); // got this from database model
          return view('store', $store); 
      }
   {
  </code></pre>
  
  <p>VIEW</p>
  
  <pre><code>// try a couple of differnt things nothing works 
  
  print_r($store); 
  print_r($store[0]-&gt;id);
  print_r($id); 
  </code></pre>