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/Eurotools/euro-tools.nl/app/KommaApp/Shop/Categories/CategoryComposer.php
<?php


namespace App\KommaApp\Shop\Categories;

use App\KommaApp\Kms\Core\KmsInterface;
use App\KommaApp\Pages\PageService;
use Illuminate\Support\Facades\Config;

class CategoryComposer {

    /**
     * Making the breadcrumb by getting the url segments
     *
     * @param $view
     */
    public function compose($view){

        $categoryService = app(ReCategoryService::class);
        $categories = $categoryService->getCategoryTree();
        $view->with('categories', $categories);
    }

}