File: D:/HostingSpaces/SBogers10/beat-the-barn.komma.nl/app/Authors/AuthorRoutes.php
<?php
namespace App\Authors;
use App\Authors\Kms\AuthorController;
use App\Authors\Models\Author;
use Illuminate\Support\Facades\Route;
final class AuthorRoutes
{
/**
* 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 TeamMember
* This is because we use a global controller to resolve the model
*/
public static function kms(){
Route::model('author', Author::class); //Explicit route model binding
Route::resource('authors', AuthorController::class);
}
}