I know this is a bit silly and probably been asked many times but for this one is unique. I'm just asking just for the sake of learning. I have these arrays inside home():
public function home()
{
$menus = [ '视频', '直播', '路亚', '海钓', '渔获' ];
$submenus1 = [ '视频', '直播', '路亚', ];
return view('/layout', [
'menus' => $menus,
'submenus1' => $submenus1,
]);
}
So it's like Nav items. And these items, I want them to be available in all views. Help would be much appreciated. Please respect. Thank you.