protected function isExportStrategyAvailable($strategy)
    {
        if ( ! array_key_exists($strategy, $this->getModelInformation()->export->strategies)) {
            return false;
        }

        $strategyInfo = $this->getModelInformation()->export->strategies[ $strategy ];

        $permissions = $strategyInfo->permissions();

        if (false === $permissions) {
            $permissions = [ $this->getPermissionPrefix() . 'export' ];
        }

        if (count($permissions) && ! $this->getCore()->auth()->can($permissions)) {
            return false;
        }

        return true;
    }
protected function isExportStrategyAvailable($strategy)
    {
        if ( ! array_key_exists($strategy, $this->getModelInformation()->export->strategies)) {
            return false;
        }

        $strategyInfo = $this->getModelInformation()->export->strategies[ $strategy ];

        $permissions = $strategyInfo->permissions();

        if (false === $permissions) {
            $permissions = [ $this->getPermissionPrefix() . 'export' ];
        }

        if (count($permissions) && ! $this->getCore()->auth()->can($permissions)) {
            return false;
        }

        return true;
    }
protected function isExportStrategyAvailable ( $ strategy ) { if ( ! array_key_exists ( $ strategy , $ this -> getModelInformation ( ) -> export -> strategies ) ) { return false ; } $ strategyInfo = $ this -> getModelInformation ( ) -> export -> strategies [ $ strategy ] ; $ permissions = $ strategyInfo -> permissions ( ) ; if ( false === $ permissions ) { $ permissions = [ $ this -> getPermissionPrefix ( ) . 'export' ] ; } if ( count ( $ permissions ) && ! $ this -> getCore ( ) -> auth ( ) -> can ( $ permissions ) ) { return false ; } return true ; }
Returns whether a given strategy key corresponds to a usable export strategy.

@param string $strategy
@return bool
Returns whether a given strategy key corresponds to a usable export strategy .