compact in laravel controller code example Example: compact laravel return View::make('myviewfolder.myview', compact('view1','view2','view3'));