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/vanderkampen.komma.pro/app/KommaApp/Shop/ShopRoutes.php
<?php

namespace App\KommaApp\Shop;

use Illuminate\Support\Facades\Route;

$shopPath = app_path('KommaApp'.DIRECTORY_SEPARATOR.'Shop'.DIRECTORY_SEPARATOR);

Route::group(['middleware' => ['web']], function () use ($shopPath) {
    Route::group(['middleware' => ['auth']], function() use ($shopPath) {
        //Place route files here which contain routes which all only accept authenticated users
        require $shopPath.'Discounts'.DIRECTORY_SEPARATOR.'discountRoutes.php';
        require $shopPath.'Catalog'.DIRECTORY_SEPARATOR.'catalogRoutes.php';
        require $shopPath.'Properties'.DIRECTORY_SEPARATOR.'propertyRoutes.php';
        require $shopPath.'orders'.DIRECTORY_SEPARATOR.'orderRoutes.php';
    });

    //Place unauthenticated route files here. and place route files here which
    //contain both authenticated (using auth middleware) or unauthenticated routes
    require $shopPath.'Products'.DIRECTORY_SEPARATOR.'productRoutes.php';
    require $shopPath.'Categories'.DIRECTORY_SEPARATOR.'categoryRoutes.php';
    require $shopPath.'Checkout'.DIRECTORY_SEPARATOR.'checkoutRoutes.php';
});