public function registerSvgDirectives()
    {
        Blade::directive('eyewitness_svg', function($arguments) {
            $arguments = trim(trim($arguments, "("), ")");
            $arguments = explode(',', $arguments.',');

            $icon = trim($arguments[0], "' ");
            $class = trim(isset($arguments[1]) ? $arguments[1] : '', "' ");
            $width = trim(isset($arguments[2]) ? $arguments[2] : '', "' ");
            $height = trim(isset($arguments[3]) ? $arguments[3] : '', "' ");

            return $this->getIconString($icon, $class, $width, $height);
        });
    }
public function registerSvgDirectives()
    {
        Blade::directive('eyewitness_svg', function($arguments) {
            $arguments = trim(trim($arguments, "("), ")");
            $arguments = explode(',', $arguments.',');

            $icon = trim($arguments[0], "' ");
            $class = trim(isset($arguments[1]) ? $arguments[1] : '', "' ");
            $width = trim(isset($arguments[2]) ? $arguments[2] : '', "' ");
            $height = trim(isset($arguments[3]) ? $arguments[3] : '', "' ");

            return $this->getIconString($icon, $class, $width, $height);
        });
    }
public function registerSvgDirectives ( ) { Blade :: directive ( 'eyewitness_svg' , function ( $ arguments ) { $ arguments = trim ( trim ( $ arguments , "(" ) , ")" ) ; $ arguments = explode ( ',' , $ arguments . ',' ) ; $ icon = trim ( $ arguments [ 0 ] , "' " ) ; $ class = trim ( isset ( $ arguments [ 1 ] ) ? $ arguments [ 1 ] : '' , "' " ) ; $ width = trim ( isset ( $ arguments [ 2 ] ) ? $ arguments [ 2 ] : '' , "' " ) ; $ height = trim ( isset ( $ arguments [ 3 ] ) ? $ arguments [ 3 ] : '' , "' " ) ; return $ this -> getIconString ( $ icon , $ class , $ width , $ height ) ; } ) ; }
Register svg directives.

To be used @eyewitness_svg('icon_name', 'class', 'width', 'height')

@return void
Register svg directives .