File: D:/HostingSpaces/SBogers10/honger.komma.pro/app/KommaApp/Posts/postRoutes.php
<?php
// Website routes
//Route::get('posts',\App\KommaApp\Posts\PostController::class . '@index');
//Route::get('posts/{post}',\App\KommaApp\Posts\PostController::class . '@show')->where('post', '[^categorie]');
Route::resource('posts', \App\KommaApp\Posts\PostController::class, [
'only' => [
'index',
'show'
]
]);
//Route::get('/posts/{post}', \App\KommaApp\Posts\PostController::class . '@show');
// Kms Routes
Route::resource('kms/posts', \App\KommaApp\Posts\Kms\PostController::class,['as' => 'kms']);
//Explicit route model binding for KMS
Route::model('post', App\KommaApp\Posts\Models\Post::class);