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);
}
}