File: D:/HostingSpaces/SBogers95/rentman.io/app/Komma/Files/FileRoutes.php
<?php
namespace App\Komma\Files;
use App\Komma\Files\Kms\FileController as KmsFileController;
use App\Komma\Files\Models\File;
use Illuminate\Support\Facades\Route;
final class FileRoutes
{
/**
* 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 File
* This is because we use a global controller to resolve the model
*/
public static function kms()
{
Route::model('file', File::class); //Explicit route model binding
Route::resource('files', KmsFileController::class);
}
}