public function slugList()
    {
        $categories = explode('/', $this->alias());
        $html       = [];

        foreach ($categories as $category) {
            $html[] = new HtmlString('<span class="label label-info">' . e(Str::title($category)) . '</span>&nbsp;');
        }

        return new HtmlString(implode('', $html));
    }
public function slugList()
    {
        $categories = explode('/', $this->alias());
        $html       = [];

        foreach ($categories as $category) {
            $html[] = new HtmlString('<span class="label label-info">' . e(Str::title($category)) . '</span>&nbsp;');
        }

        return new HtmlString(implode('', $html));
    }
public function slugList ( ) { $ categories = explode ( '/' , $ this -> alias ( ) ) ; $ html = [ ] ; foreach ( $ categories as $ category ) { $ html [ ] = new HtmlString ( '<span class="label label-info">' . e ( Str :: title ( $ category ) ) . '</span>&nbsp;' ) ; } return new HtmlString ( implode ( '' , $ html ) ) ; }
Display nested categories of the article.

@return \Illuminate\Support\HtmlString
Display nested categories of the article .