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