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/netwerkbrabant.komma.pro/app/KommaApp/Tags/TagController.php
<?php


namespace App\KommaApp\Tags;


use App\Http\Controllers\Controller;

class TagController extends Controller
{

    private $tagService;

    public function __construct()
    {
        parent::__construct();
        $this->tagService = \App::make(TagService::class);
    }

    public function show($tagSlug)
    {
        $tag = $this->tagService->getTagBySlug($tagSlug);

        $taggableModels = $this->tagService->getTaggableModels($tag);

        // Return view
        return \View::make($this->baseViewPath.'.pages.tag',[
            'tag' => $tag,
            'taggableModels' => $taggableModels
        ]);

    }

}