File: D:/HostingSpaces/SBogers95/rentman.io/app/Komma/Shop/Categories/categoryRoutes.php
<?php
use App\Komma\Shop\Categories\CategoryController as FrontendCategoryController;
use App\Komma\Shop\Categories\Kms\CategoryController as BackendCategoryController;
Route::model('category', App\Komma\Shop\Categories\Models\Category::class); //Explicit route model binding
//Authenticated routes
Route::group(['middleware' => ['auth']], function () {
Route::resource('kms/categories', BackendCategoryController::class);
Route::get('kms/api/categories', BackendCategoryController::class.'@getStructureAsJson');
Route::post('kms/api/categories', BackendCategoryController::class.'@setStructureAsJson');
});
Route::resource('categories', FrontendCategoryController::class, ['only' => [
'index', 'show',
]])->names([
'index' => 'frontend.categories.index',
'show' => 'frontend.categories.show',
]);
Route::get('categories/filters', FrontendCategoryController::class.'@filters');