File: D:/HostingSpaces/centrum8a/centrum8a.com/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';
});