public function href($routeName = 'tag.single', $customAttributes = [])
    {
        $params = ['tagSlug'=>$this->slug];
        if($customAttributes) {
            $params = array_merge($customAttributes, $params);
        }
        return route($routeName, $params);
    }
public function href($routeName = 'tag.single', $customAttributes = [])
    {
        $params = ['tagSlug'=>$this->slug];
        if($customAttributes) {
            $params = array_merge($customAttributes, $params);
        }
        return route($routeName, $params);
    }
public function href ( $ routeName = 'tag.single' , $ customAttributes = [ ] ) { $ params = [ 'tagSlug' => $ this -> slug ] ; if ( $ customAttributes ) { $ params = array_merge ( $ customAttributes , $ params ) ; } return route ( $ routeName , $ params ) ; }
Generate a custom URL to a tag.

@param string $routeName
@param array  $customAttributes

@return string
Generate a custom URL to a tag .