compact
Compact function allows you to pass data to the view.
$color = 'blue';
$shape = 'square';
view('geometry',compact("color","shape"));
copy
Compact function allows you to pass data to the view.
$color = 'blue';
$shape = 'square';
view('geometry',compact("color","shape"));
copy