File: D:/HostingSpaces/SBogers10/ste.komma.pro/app/Authors/AuthorRoutes.php
<?php
namespace App\Authors;
use App\Authors\Models\Author;
use Illuminate\Support\Facades\Route;
use App\Authors\Kms\AuthorController as KmsAuthorController;
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 Author
* 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', KmsAuthorController::class);
}
}