SyntaxFix
Write A Post
Hire A Developer
Questions
Use compact
function view($view) { $ms = Person::where('name', '=', 'Foo Bar')->first(); $persons = Person::order_by('list_order', 'ASC')->get(); return View::make('users', compact('ms','persons')); }