To pass data to the layout, you use the first parameter as the name of the variable.
, :
$this->layout->nest('content', 'home.index', $array);
home.index, $array. , .
, , $content, , "nest".
API, , "", , : Laravel\View
with, .
, - :
$this->layout->with( 'myVariable' , $variable_to_pass_to_layout )
->nest('content', 'home.index', $array)