File: D:/HostingSpaces/SBogers10/csb.komma.pro/app/ProjectTypes/ProjectTypeRoutes.php
<?php
namespace App\ProjectTypes;
use App\ProjectTypes\Kms\ProjectTypeController;
use App\ProjectTypes\Models\ProjectType;
use Illuminate\Support\Facades\Route;
final class ProjectTypeRoutes
{
/**
* 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 Project
* This is because we use a global controller to resolve the model
*/
public static function kms(){
Route::model('project_type', ProjectType::class); //Explicit route model binding
Route::resource('project_types', ProjectTypeController::class);
}
}