File: D:/HostingSpaces/farmfun/reserveren.farmfun.be/app/Komma/LocationProducts/LocationProductRoutes.php
<?php
namespace App\Komma\LocationProducts;
use App\Komma\LocationProducts\Kms\LocationProductController as KmsLocationProductController;
use App\Komma\LocationProducts\Models\LocationProduct;
use Illuminate\Support\Facades\Route;
final class LocationProductRoutes
{
/**
* 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 LocationProduct
* This is because we use a global controller to resolve the model
*/
public static function kms()
{
Route::model('locationproduct', LocationProduct::class); //Explicit route model binding
Route::resource('locationproducts', KmsLocationProductController::class);
}
}