File: D:/HostingSpaces/SBogers10/shop.komma.nl/app/Properties/PropertyRoutes.php
<?php
namespace App\Properties;
use App\Properties\Kms\PropertyController;
use App\Properties\Kms\PropertyKeyController;
use App\Properties\Models\Property;
use App\Properties\Models\PropertyKey;
use Illuminate\Support\Facades\Route;
final class PropertyRoutes
{
public static function web() {
//Warning. use auth:site middleware on routes you want to have authenticated. Or wrap them in a group that has the auth:site middleware.
Route::get('properties/keys/all', PropertyController::class.'@allKeys');
Route::get('properties/keys/translations/{language_iso_2?}', PropertyController::class.'@allKeyTranslationsForLanguage');
Route::get('properties/values/translations/{language_iso_2?}', PropertyController::class.'@allValueTranslationsForLanguage');
Route::get('properties/values/translations/{language_iso_2}/make', PropertyController::class.'@makeNewValueTranslation');
Route::get('properties/required_keys_for_categories/{category_ids}', PropertyKeyController::class.'@requiredPropertyKeysForCategories');
Route::get('properties/for_propertizable/{propertizable_type}/{propertizable_id}', PropertyController::class.'@getPropertiesForPropertizable');
Route::get('properties/all', PropertyController::class.'@all');
Route::post('properties/create', PropertyController::class.'@createProperty');
Route::post('properties/create_based_on_existing', PropertyController::class.'@createPropertyBasedOnExisting');
Route::post('properties/remove', PropertyController::class.'@removeProperty');
}
public static function kms()
{
Route::model('property', Property::class); //Explicit route model binding
Route::model('property_key', PropertyKey::class); //Explicit route model binding
Route::get('properties/getpropertiesforpropertykeyvalue/{keyTranslationValue}}', PropertyController::class.'@getPropertiesForPropertyKeyValue');
Route::resource('property_keys', PropertyKeyController::class);
}
}