Route::get('/',function(){// Data example$sections=['Intro','Information','Stats'];// OPTION 1 - Pass in the second argument.returnview('dashboard',['sections'=>$sections// This variable is now available in the dashboard view'data'=>'Some other data'// You can create multiple data holding data]);// OPTION 2 - Using "with" magic methods.returnview('dashboard')->withSections($sections)->withData($data);// OPTION 3 - Combining the two approaches above.returnview('dashboard')->with(['sections'=>['Intro','Information','Stats'],'data'=>'Some other data']);});