public function getPreviewURL($locale = null)
    {
        $token = app()->make(TokenManager::class)
            ->makeNewToken('preview_nodes');

        $url = $this->getSiteURL($locale);

        return $url . '?preview_nodes=' . $token;
    }
public function getPreviewURL($locale = null)
    {
        $token = app()->make(TokenManager::class)
            ->makeNewToken('preview_nodes');

        $url = $this->getSiteURL($locale);

        return $url . '?preview_nodes=' . $token;
    }
public function getPreviewURL ( $ locale = null ) { $ token = app ( ) -> make ( TokenManager :: class ) -> makeNewToken ( 'preview_nodes' ) ; $ url = $ this -> getSiteURL ( $ locale ) ; return $ url . '?preview_nodes=' . $ token ; }
Returns the preview url

@param string $locale
@return string
Returns the preview url