migrate to gtea from bistbucket
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\Restaurant\Http\Requests\Table;
|
||||
|
||||
use Illuminate\Foundation\Http\FormRequest;
|
||||
|
||||
class TableStoreRequest extends FormRequest
|
||||
{
|
||||
public function rules(): array
|
||||
{
|
||||
return [
|
||||
'name' => 'required|string|max:255',
|
||||
'serial' => 'nullable|string|max:50', // optional unique table code
|
||||
'location' => 'nullable|string|max:255',
|
||||
'section' => 'nullable|string|max:255', // e.g., VIP, Main Floor
|
||||
'table_type' => 'nullable|in:regular,vip,outdoor,booth',
|
||||
'capacity' => 'required',
|
||||
'is_bookable' => 'nullable|boolean',
|
||||
'qr_code' => 'nullable|string|max:255',
|
||||
'image' => 'nullable|image|mimes:jpeg,png,jpg,gif,webp',
|
||||
'position_x' => 'nullable',
|
||||
'position_y' => 'nullable',
|
||||
'rotation' => 'nullable|numeric|min:0|max:360',
|
||||
'z_index' => 'nullable',
|
||||
'status' => 'nullable|in:0,1',
|
||||
];
|
||||
}
|
||||
|
||||
public function authorize(): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\Restaurant\Http\Requests\Table;
|
||||
|
||||
use Illuminate\Foundation\Http\FormRequest;
|
||||
|
||||
class TableUpdateRequest extends FormRequest
|
||||
{
|
||||
public function rules(): array
|
||||
{
|
||||
return [
|
||||
'name' => 'required|string|max:255',
|
||||
'serial' => 'nullable|string|max:50', // optional unique table code
|
||||
'location' => 'nullable|string|max:255',
|
||||
'section' => 'nullable|string|max:255', // e.g., VIP, Main Floor
|
||||
'table_type' => 'nullable|in:regular,vip,outdoor,booth',
|
||||
'capacity' => 'required',
|
||||
'is_bookable' => 'nullable|boolean',
|
||||
'qr_code' => 'nullable|string|max:255',
|
||||
'image' => 'nullable|image|mimes:jpeg,png,jpg,gif,webp',
|
||||
'position_x' => 'nullable',
|
||||
'position_y' => 'nullable',
|
||||
'rotation' => 'nullable|numeric|min:0|max:360',
|
||||
'z_index' => 'nullable',
|
||||
'status' => 'nullable|in:0,1',
|
||||
];
|
||||
}
|
||||
|
||||
public function authorize(): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user