src/BladeSvgSage.php
public function directives()
    {
        /** Create @icon() Blade directive */
        sage('blade')->compiler()->directive('icon', function ($expression) {
            return "<?php echo e(App\svg_image({$expression})) ?>";
        });

        /** Create @svg() Blade directive */
        sage('blade')->compiler()->directive('svg', function ($expression) {
            return "<?php echo e(App\svg_image({$expression})) ?>";
        });

        /** Create @spritesheet Blade directive */
        sage('blade')->compiler()->directive('spritesheet', function () {
            return "<?php echo e(App\svg_spritesheet()) ?>";
        });
    }
public function directives()
    {
        /** Create @icon() Blade directive */
        sage('blade')->compiler()->directive('icon', function ($expression) {
            return "<?php echo e(App\svg_image({$expression})) ?>";
        });

        /** Create @svg() Blade directive */
        sage('blade')->compiler()->directive('svg', function ($expression) {
            return "<?php echo e(App\svg_image({$expression})) ?>";
        });

        /** Create @spritesheet Blade directive */
        sage('blade')->compiler()->directive('spritesheet', function () {
            return "<?php echo e(App\svg_spritesheet()) ?>";
        });
    }
Register Directives with Blade.

@return void