src/Http/Controllers/PageResourceController.php
public function show(PageRequest $request, Page $page)
    {

        if ($page->exists) {
            $view = 'page::admin.page.show';
        } else {
            $view = 'page::admin.page.new';
        }

        return $this->response->setMetaTitle(trans('app.view') . ' ' . trans('page::page.name'))
            ->data(compact('page'))
            ->view($view)
            ->output();
    }
public function show(PageRequest $request, Page $page)
    {

        if ($page->exists) {
            $view = 'page::admin.page.show';
        } else {
            $view = 'page::admin.page.new';
        }

        return $this->response->setMetaTitle(trans('app.view') . ' ' . trans('page::page.name'))
            ->data(compact('page'))
            ->view($view)
            ->output();
    }
public function show ( PageRequest $ request , Page $ page ) { if ( $ page -> exists ) { $ view = 'page::admin.page.show' ; } else { $ view = 'page::admin.page.new' ; } return $ this -> response -> setMetaTitle ( trans ( 'app.view' ) . ' ' . trans ( 'page::page.name' ) ) -> data ( compact ( 'page' ) ) -> view ( $ view ) -> output ( ) ; }
Display page.

@param Request $request
@param Model   $page

@return Response
Display page .