heihachi88
5/15/2014 - 12:43 PM

Send variable to route

Send variable to route

// Get all the contacts from table
$contacts = Contact::all();

// Another way of passing variable to a view
return View::make('home.index')->with('contacts', $contacts);