21 lines
356 B
PHP
21 lines
356 B
PHP
<?php
|
|
|
|
namespace App\Http\Requests\Client;
|
|
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
|
|
class PaymentRequest extends FormRequest
|
|
{
|
|
public function authorize(): bool
|
|
{
|
|
return true;
|
|
}
|
|
|
|
public function rules(): array
|
|
{
|
|
return [
|
|
'invoice_id' => ['required', 'integer', 'exists:invoices,id'],
|
|
];
|
|
}
|
|
}
|