public function findParent(&$items, $item)
    {
        return $items->filter(function ($element) use ($item) {
            return $item->parent_id == $element->id;
        })->first();
    }
public function findParent(&$items, $item)
    {
        return $items->filter(function ($element) use ($item) {
            return $item->parent_id == $element->id;
        })->first();
    }
public function findParent ( & $ items , $ item ) { return $ items -> filter ( function ( $ element ) use ( $ item ) { return $ item -> parent_id == $ element -> id ; } ) -> first ( ) ; }
Find parent item in menu.

@param \Illuminate\Support\Collection &$items
@param \Assely\Adapter\Menu $item

@return \Illuminate\Support\Collection
Find parent item in menu .