app/View/Components/Navbar.php
/**
     * Get the view / contents that represent the component.
     *
     * @return \Illuminate\View\View|string
     */
Get the view / contents that represent the component.
@return \Illuminate\View\View|string
Get the view / contents that represent the component . @return \ Illuminate \ View \ View|string
public function render()
    {
        $navItems = Navigation::all();
        return view('components.navbar', ['navItems'=> $navItems, 'cart'=> Session::get("cart")]);
    }
public function render ( ) { $ navItems = Navigation :: all ( ) ; return view ( 'components.navbar' , [ 'navItems' => $ navItems , 'cart' => Session :: get ( " cart " ) ] ) ; }
Get the view / contents that represent the component.
Get the view / contents that represent the component .