migrate to gtea from bistbucket
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\Restaurant\Http\Requests\FoodWaste;
|
||||
|
||||
use Illuminate\Foundation\Http\FormRequest;
|
||||
|
||||
class FoodWasteStoreRequest extends FormRequest
|
||||
{
|
||||
public function rules(): array
|
||||
{
|
||||
return [
|
||||
'food_item_id' => 'required|exists:food_items,id',
|
||||
'food_variant_id' => 'nullable|exists:food_variants,id',
|
||||
'quantity' => 'required|numeric|min:0.01',
|
||||
'reason' => 'required|string|max:255',
|
||||
'notes' => 'nullable|string',
|
||||
'wasted_at' => 'nullable|date',
|
||||
'approve' => 'nullable|boolean',
|
||||
];
|
||||
}
|
||||
|
||||
public function authorize(): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\Restaurant\Http\Requests\FoodWaste;
|
||||
|
||||
use Illuminate\Foundation\Http\FormRequest;
|
||||
|
||||
class FoodWasteUpdateRequest extends FormRequest
|
||||
{
|
||||
public function rules(): array
|
||||
{
|
||||
return [
|
||||
'food_item_id' => 'required|exists:food_items,id',
|
||||
'food_variant_id' => 'nullable|exists:food_variants,id',
|
||||
'quantity' => 'required|numeric|min:0.01',
|
||||
'reason' => 'required|string|max:255',
|
||||
'notes' => 'nullable|string',
|
||||
'wasted_at' => 'nullable|date',
|
||||
'approve' => 'nullable|boolean',
|
||||
];
|
||||
}
|
||||
|
||||
public function authorize(): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user