app/View/Components/sidebar.php
/**
     * Get the view / contents that represent the component.
     *
     * @return \Illuminate\Contracts\View\View|\Closure|string
     */
Get the view / contents that represent the component.
Get the view / contents that represent the component .
public function render()
    {
        return view('components.sidebar',[
            'data' => $this->data
        ]);
    }
public function render ( ) { return view ( 'components.sidebar' , [ 'data' => $ this -> data ] ) ; }
Get the view / contents that represent the component.
Get the view / contents that represent the component .