File: D:/HostingSpaces/SBogers10/slenders.komma.pro/app/Komma/Categories/CategoryRoutes.php
<?php
namespace App\Komma\Categories;
use App\Komma\Categories\Models\Category;
use Illuminate\Support\Facades\Route;
use App\Komma\Categories\Kms\CategoryController as KmsCategoryController;
final class CategoryRoutes
{
/**
* Routes that are used for and within the KMS
* Will be prefixed with 'kms' by the Route::group in the RouteResolver
*
* Note: Within the group we use the Explicit Route Model Binding to point to a Category
* This is because we use a global controller to resolve the model
*/
public static function kms(){
Route::model('category', Category::class); //Explicit route model binding
Route::resource('categories', KmsCategoryController::class);
}
}