feat(food): implement FoodFormController and FoodFormService; add FoodFormResource for managing food options and routes
This commit is contained in:
@@ -20,7 +20,7 @@ class AccommodationService
|
||||
{
|
||||
private const ATTRIBUTE_CODE = 'tipo_alojamiento';
|
||||
|
||||
public function current(Tenant $tenant): CatalogItem
|
||||
public function current(Tenant $tenant): ?CatalogItem
|
||||
{
|
||||
return CatalogItem::query()
|
||||
->where('tenant_code', $tenant->codigo)
|
||||
@@ -31,7 +31,7 @@ class AccommodationService
|
||||
'variants.inventory',
|
||||
'variants.definitions',
|
||||
])
|
||||
->firstOrFail();
|
||||
->first();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user