public function faviconLinkTag($source = null, $attributes = [])
    {
        // E.g. favicon_link_tag('favicon.ico', ['rel' => 'shortcut icon']); =>
        //      <link href='http://localhost/assets/favicon.ico' rel="shortcut icon" type="image/vnd.microsoft.icon">
        $source = $source ?: "favicon.ico";

        $assetsOptions = ['host' => array_pull($attributes, 'host', $this->assetsHost)];

        $defaults = ['rel' => 'shortcut icon', 'type' => 'image/vnd.microsoft.icon'];
        $attributes = $attributes + $defaults;

        return "<link href='".$this->assetPath($source, $assetsOptions)."'".app('html')->attributes($attributes).">".PHP_EOL;
    }
public function faviconLinkTag($source = null, $attributes = [])
    {
        // E.g. favicon_link_tag('favicon.ico', ['rel' => 'shortcut icon']); =>
        //      <link href='http://localhost/assets/favicon.ico' rel="shortcut icon" type="image/vnd.microsoft.icon">
        $source = $source ?: "favicon.ico";

        $assetsOptions = ['host' => array_pull($attributes, 'host', $this->assetsHost)];

        $defaults = ['rel' => 'shortcut icon', 'type' => 'image/vnd.microsoft.icon'];
        $attributes = $attributes + $defaults;

        return "<link href='".$this->assetPath($source, $assetsOptions)."'".app('html')->attributes($attributes).">".PHP_EOL;
    }
public function faviconLinkTag ( $ source = null , $ attributes = [ ] ) { // E.g. favicon_link_tag('favicon.ico', ['rel' => 'shortcut icon']); => //      <link href='http://localhost/assets/favicon.ico' rel="shortcut icon" type="image/vnd.microsoft.icon"> $ source = $ source ? : "favicon.ico" ; $ assetsOptions = [ 'host' => array_pull ( $ attributes , 'host' , $ this -> assetsHost ) ] ; $ defaults = [ 'rel' => 'shortcut icon' , 'type' => 'image/vnd.microsoft.icon' ] ; $ attributes = $ attributes + $ defaults ; return "<link href='" . $ this -> assetPath ( $ source , $ assetsOptions ) . "'" . app ( 'html' ) -> attributes ( $ attributes ) . ">" . PHP_EOL ; }
Returns a HTML favicon link tag for the source and attributes specified as arguments.

@param  string  $source Relative URL
@param  array   $attributes HTML attributes
@return string
Returns a HTML favicon link tag for the source and attributes specified as arguments .