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,24 @@
<?php
namespace Modules\Restaurant\Http\Requests\PaymentMethod;
use Illuminate\Foundation\Http\FormRequest;
class PaymentMethodStoreRequest extends FormRequest
{
public function rules(): array
{
return [
'name' => 'required|string|max:255',
'type' => 'nullable|in:gateway,cash,card,wallet',
'credentials' => 'nullable|array', // since it's JSON, validate as array
'is_default' => 'nullable|boolean',
'status' => 'nullable|in:0,1',
];
}
public function authorize(): bool
{
return true;
}
}

View File

@@ -0,0 +1,24 @@
<?php
namespace Modules\Restaurant\Http\Requests\PaymentMethod;
use Illuminate\Foundation\Http\FormRequest;
class PaymentMethodUpdateRequest extends FormRequest
{
public function rules(): array
{
return [
'name' => 'required|string|max:255',
'type' => 'nullable|in:gateway,cash,card,wallet',
'credentials' => 'nullable|array', // since it's JSON, validate as array
'is_default' => 'nullable|boolean',
'status' => 'nullable|in:0,1',
];
}
public function authorize(): bool
{
return true;
}
}