public function getPublished()
    {
        return $this->getModel()->with([
            'menus' => function ($query) {
                $query->limitDepth(1)->orderBy('order', 'asc');
            },
            'menus.permissions',
            'menus.children',
        ])->published()->get();
    }
public function getPublished()
    {
        return $this->getModel()->with([
            'menus' => function ($query) {
                $query->limitDepth(1)->orderBy('order', 'asc');
            },
            'menus.permissions',
            'menus.children',
        ])->published()->get();
    }
public function getPublished ( ) { return $ this -> getModel ( ) -> with ( [ 'menus' => function ( $ query ) { $ query -> limitDepth ( 1 ) -> orderBy ( 'order' , 'asc' ) ; } , 'menus.permissions' , 'menus.children' , ] ) -> published ( ) -> get ( ) ; }
Get all published navigation.

@return \Illuminate\Database\Eloquent\Collection|static[]
Get all published navigation .