public function isVisible(): bool
    {
        if (!empty($this->item['permission'])) {
            return $this->vault->getGuard()->allows($this->item['permission']);
        }

        //Remove :action
        $target = current(explode(':', $this->getTarget()));

        return $this->vault->getGuard()->allows(
            "{$this->vault->getConfig()->guardNamespace()}.{$target}"
        );
    }
public function isVisible(): bool
    {
        if (!empty($this->item['permission'])) {
            return $this->vault->getGuard()->allows($this->item['permission']);
        }

        //Remove :action
        $target = current(explode(':', $this->getTarget()));

        return $this->vault->getGuard()->allows(
            "{$this->vault->getConfig()->guardNamespace()}.{$target}"
        );
    }
public function isVisible ( ) : bool { if ( ! empty ( $ this -> item [ 'permission' ] ) ) { return $ this -> vault -> getGuard ( ) -> allows ( $ this -> item [ 'permission' ] ) ; } //Remove :action $ target = current ( explode ( ':' , $ this -> getTarget ( ) ) ) ; return $ this -> vault -> getGuard ( ) -> allows ( "{$this->vault->getConfig()->guardNamespace()}.{$target}" ) ; }
Check if item is visible.

@return bool
Check if item is visible .