public function render(array $attributes = [], array $separator = [])
    {
        if (empty($this->crumbs)) {
            return parent::render($attributes, $separator);
        }

        //Removes the url for the last crumb
        end($this->crumbs);
        $last = key($this->crumbs);
        $this->crumbs[$last]['url'] = null;

        $attributes = optionsParser($attributes)->append('class', 'breadcrumb');

        return parent::render($attributes->toArray(), $separator);
    }
public function render(array $attributes = [], array $separator = [])
    {
        if (empty($this->crumbs)) {
            return parent::render($attributes, $separator);
        }

        //Removes the url for the last crumb
        end($this->crumbs);
        $last = key($this->crumbs);
        $this->crumbs[$last]['url'] = null;

        $attributes = optionsParser($attributes)->append('class', 'breadcrumb');

        return parent::render($attributes->toArray(), $separator);
    }
public function render ( array $ attributes = [ ] , array $ separator = [ ] ) { if ( empty ( $ this -> crumbs ) ) { return parent :: render ( $ attributes , $ separator ) ; } //Removes the url for the last crumb end ( $ this -> crumbs ) ; $ last = key ( $ this -> crumbs ) ; $ this -> crumbs [ $ last ] [ 'url' ] = null ; $ attributes = optionsParser ( $ attributes ) -> append ( 'class' , 'breadcrumb' ) ; return parent :: render ( $ attributes -> toArray ( ) , $ separator ) ; }
Renders the breadcrumbs trail
@param array $attributes Array of attributes applied to the `wrapper`
template
@param array $separator Array of attributes for the `separator` template
@return string The breadcrumbs trail
Renders the breadcrumbs trail