migrate to gtea from bistbucket
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user