src/Http/Composers/AssetViewComposer.php
protected function getValidatedStrategyFromConfig():string
    {
        $strategy = config('sharp.extensions.assets.strategy', 'raw');

        if(!is_string($strategy)) {
            throw new SharpInvalidAssetRenderStrategy('The asset strategy defined at sharp.extensions.assets.strategy is not a string');
        }

        if(!in_array($strategy, $this->renderStrategies)) {
            throw new SharpInvalidAssetRenderStrategy("The asset strategy [$strategy] is not raw, asset, or mix");
        }

        return $strategy;
    }
protected function getValidatedStrategyFromConfig():string
    {
        $strategy = config('sharp.extensions.assets.strategy', 'raw');

        if(!is_string($strategy)) {
            throw new SharpInvalidAssetRenderStrategy('The asset strategy defined at sharp.extensions.assets.strategy is not a string');
        }

        if(!in_array($strategy, $this->renderStrategies)) {
            throw new SharpInvalidAssetRenderStrategy("The asset strategy [$strategy] is not raw, asset, or mix");
        }

        return $strategy;
    }
protected function getValidatedStrategyFromConfig ( ) : string { $ strategy = config ( 'sharp.extensions.assets.strategy' , 'raw' ) ; if ( ! is_string ( $ strategy ) ) { throw new SharpInvalidAssetRenderStrategy ( 'The asset strategy defined at sharp.extensions.assets.strategy is not a string' ) ; } if ( ! in_array ( $ strategy , $ this -> renderStrategies ) ) { throw new SharpInvalidAssetRenderStrategy ( "The asset strategy [$strategy] is not raw, asset, or mix" ) ; } return $ strategy ; }
Get the strategy to render the assets

@return string
@throws SharpInvalidAssetRenderStrategy
Get the strategy to render the assets