File: D:/HostingSpaces/Eurotools/euro-tools.nl/app/KommaApp/CustomerService/customerServiceRoutes.php
<?php
//CustomerServices routes
use App\KommaApp\CustomerService\CustomerServiceController as FrontendCustomerServiceController;
use App\KommaApp\CustomerService\Kms\CustomerServiceController as BackendCustomerServiceController;
Route::model('customerservice', App\KommaApp\CustomerService\Models\CustomerService::class); //Explicit route model binding
Route::group(['middleware' => ['auth']], function() {
Route::resource('kms/customerservice', BackendCustomerServiceController::class);
Route::get('kms/api/customerservice', BackendCustomerServiceController::class.'@getCustomerServiceStructureAsJson');
Route::post('kms/api/customerservice', BackendCustomerServiceController::class.'@setCustomerServiceStructureAsJson');
});
Route::get('/customerservice/{CustomerService}', FrontendCustomerServiceController::class.'@show');