src/FontAwesome.php
public function icon($name, $options = [])
    {
        $options = $this->parseOptions($options);

        $options['class'] = $this->getClasses($name, Arr::pull($options, 'class'));

        return new HtmlString(
            $this->openTag($this->attributes($options)) . $this->closeTag()
        );
    }
public function icon($name, $options = [])
    {
        $options = $this->parseOptions($options);

        $options['class'] = $this->getClasses($name, Arr::pull($options, 'class'));

        return new HtmlString(
            $this->openTag($this->attributes($options)) . $this->closeTag()
        );
    }
public function icon ( $ name , $ options = [ ] ) { $ options = $ this -> parseOptions ( $ options ) ; $ options [ 'class' ] = $ this -> getClasses ( $ name , Arr :: pull ( $ options , 'class' ) ) ; return new HtmlString ( $ this -> openTag ( $ this -> attributes ( $ options ) ) . $ this -> closeTag ( ) ) ; }
Builds a FontAwesome icon HTML.

@param string $name    The icon name, as indicated in the FA documentation.
@param array  $options Extra class/es to add to the icon

@return string
Builds a FontAwesome icon HTML .