migrate to gtea from bistbucket

This commit is contained in:
2026-03-15 17:08:23 +07:00
commit 129ca2260c
3716 changed files with 566316 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
<?php
namespace Modules\Restaurant\Http\Requests\IngredientDamage;
use Illuminate\Foundation\Http\FormRequest;
class IngredientDamageStoreRequest extends FormRequest
{
public function rules(): array
{
return [
'purchase_id' => ['required', 'exists:purchases,id'],
'ingredient_id' => ['required', 'exists:ingredients,id'],
'batch_no' => ['nullable', 'string'],
'quantity' => ['required', 'numeric', 'min:0.01'],
'unit_cost' => ['nullable', 'numeric', 'min:0'],
'reason' => ['nullable', 'string'],
'damage_date' => ['nullable', 'date'],
'reported_by' => ['nullable', 'exists:users,id'],
];
}
public function authorize(): bool
{
return true;
}
}

View File

@@ -0,0 +1,20 @@
<?php
namespace Modules\Restaurant\Http\Requests\IngredientDamage;
use Illuminate\Foundation\Http\FormRequest;
class IngredientDamageUpdateRequest extends FormRequest
{
public function rules(): array
{
return [
// validation rules
];
}
public function authorize(): bool
{
return true;
}
}