public function prepareCanonicalURLForPersist($slug)
    {
        $baseURL = rtrim(config('app.url'), "/");

        if ($this->model->table == "posts") $type = "blog";


        // July 15, 2015: do *NOT* want type!

        //return $baseURL.'/'.$type.'/'.$slug;
        return $baseURL.'/'.$slug;
    }
public function prepareCanonicalURLForPersist($slug)
    {
        $baseURL = rtrim(config('app.url'), "/");

        if ($this->model->table == "posts") $type = "blog";


        // July 15, 2015: do *NOT* want type!

        //return $baseURL.'/'.$type.'/'.$slug;
        return $baseURL.'/'.$slug;
    }
public function prepareCanonicalURLForPersist ( $ slug ) { $ baseURL = rtrim ( config ( 'app.url' ) , "/" ) ; if ( $ this -> model -> table == "posts" ) $ type = "blog" ; // July 15, 2015: do *NOT* want type! //return $baseURL.'/'.$type.'/'.$slug; return $ baseURL . '/' . $ slug ; }
Transform canonical_url for persist.

@param  text  $slug
@return text
Transform canonical_url for persist .