public function getUrl($layout = null)
    {
        $layout = $layout ? '?layout=' . $layout : '';

        return url($this->slug) . $layout;
    }
public function getUrl($layout = null)
    {
        $layout = $layout ? '?layout=' . $layout : '';

        return url($this->slug) . $layout;
    }
public function getUrl ( $ layout = null ) { $ layout = $ layout ? '?layout=' . $ layout : '' ; return url ( $ this -> slug ) . $ layout ; }
Get url from implementing class.

@param mixed $layout
@return string
Get url from implementing class .