src/Models/Term.php
public function getRouteParameters($taxonomy)
    {
        $taxonomy = Taxonomy::taxonomy($taxonomy)
                            ->term($this->name)
                            ->with('parent')
                            ->first();

        $parameters = $this->getParentSlugs($taxonomy);

        array_push($parameters, $taxonomy->taxonomy);

        return array_reverse($parameters);
    }
public function getRouteParameters($taxonomy)
    {
        $taxonomy = Taxonomy::taxonomy($taxonomy)
                            ->term($this->name)
                            ->with('parent')
                            ->first();

        $parameters = $this->getParentSlugs($taxonomy);

        array_push($parameters, $taxonomy->taxonomy);

        return array_reverse($parameters);
    }
public function getRouteParameters ( $ taxonomy ) { $ taxonomy = Taxonomy :: taxonomy ( $ taxonomy ) -> term ( $ this -> name ) -> with ( 'parent' ) -> first ( ) ; $ parameters = $ this -> getParentSlugs ( $ taxonomy ) ; array_push ( $ parameters , $ taxonomy -> taxonomy ) ; return array_reverse ( $ parameters ) ; }
Get route parameters.

@param  string  $taxonomy
@return mixed
Get route parameters .