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/SBogers79/artofeinstein.be/app/Komma/Pages/PageController.php
<?php

namespace Komma\Pages;

use Illuminate\Http\Request;
use Komma\BaseController;

class PageController extends \BaseController
{

    public $data;
    protected $pageService;

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

        $this->data = (object)[
            'translations' => $this->pageService->getTextBlocks()
        ];
    }

    public function show($id = 2){
        $this->data->id = $id;
        $this->data->content = $this->pageService->getPageContent($id);
        return \View::make('layouts.pages.'.$this->data->content->code_name)->with(
            [
                'data' => $this->data,
                'locations' => $this->pageService->getLocations(),
            ]
        );
    }

    public function index(){
        echo "hoi";

    }
}