File "BulkExchangeRateRequest.php"
Full Path: /home/pulsehostuk9/public_html/invoicer.pulsehost.co.uk/app/Http/Requests/BulkExchangeRateRequest.php
File size: 706 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class BulkExchangeRateRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*/
public function authorize(): bool
{
return true;
}
/**
* Get the validation rules that apply to the request.
*/
public function rules(): array
{
return [
'currencies' => [
'required',
],
'currencies.*.id' => [
'required',
'numeric',
],
'currencies.*.exchange_rate' => [
'required',
],
];
}
}