add payment option

This commit is contained in:
2025-10-02 18:35:02 +02:00
parent 0e0912c81b
commit 971a9e89d1
27 changed files with 1327 additions and 34 deletions
+24
View File
@@ -0,0 +1,24 @@
<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class StoreBookingRequest extends FormRequest
{
public function authorize(): bool
{
return true;
}
public function rules(): array
{
return [
'amount' => ['required', 'numeric', 'min:0.01'],
'type' => ['required', 'in:debit,credit'],
'description' => ['nullable', 'string', 'max:255'],
'booked_at' => ['nullable', 'date'],
'payment_id' => ['nullable', 'integer', 'exists:payments,id'],
];
}
}