<?php

namespace Styleguide\Pages;

class NewsView extends Page
{
    /** {@inheritdoc} **/
    public $path = '/styleguide/news/item-1';

    /**
     * {@inheritdoc}
     */
    public function getPageData()
    {
        return app('Factories\Page')->create(1, true, [
            'page' => [
                'controller' => 'NewsController',
                'title' => 'News View',
                'id' => null,
            ],
        ]);
    }
}

<?php

namespace Styleguide\Pages;

class NewsView extends Page
{
    /** {@inheritdoc} **/
    public $path;

    /**
     * {@inheritdoc}
     */
    public function getPageData()
    {
        $this->path = '/styleguide/'.config('base.news_listing_route').'/item-1';

        return app('Factories\Page')->create(1, true, [
            'page' => [
                'controller' => 'NewsController',
                'title' => 'News View',
                'id' => null,
            ],
        ]);
    }
}

Move the path so we can use the config value for the route
Move the path so we can use the config value for the route
