public function getTemplate()
    {
        $view = 'articles' . str_replace('//', '.', $this->slug);
        if (view()->exists($view)) {
            return $view;
        }

        return $this->hasTemplate() ? $this->blade_template : 'article.show';
    }
public function getTemplate()
    {
        $view = 'articles' . str_replace('//', '.', $this->slug);
        if (view()->exists($view)) {
            return $view;
        }

        return $this->hasTemplate() ? $this->blade_template : 'article.show';
    }
public function getTemplate ( ) { $ view = 'articles' . str_replace ( '//' , '.' , $ this -> slug ) ; if ( view ( ) -> exists ( $ view ) ) { return $ view ; } return $ this -> hasTemplate ( ) ? $ this -> blade_template : 'article.show' ; }
Get article's template.

@return mixed|string
Get article s template .