andremellow
4 years ago
575
9
General

Passing parameter to partial

Posted 4 years ago by andremellow

Is it possible to pass a parameter to a partial like

@include( 'partial' , [ 'name' => $value ] )

I know partial can access parent view data, but sometimes the parent variables has different name in each view.

Thanks

Please sign in or create an account to participate in this conversation.