26 lines
520 B
PHP
26 lines
520 B
PHP
<?php
|
|
|
|
namespace App\Http\Requests\OpenBanking;
|
|
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
|
|
class StartAuthorizationRequest extends FormRequest
|
|
{
|
|
public function authorize(): bool
|
|
{
|
|
return true;
|
|
}
|
|
|
|
/**
|
|
* @return array<string, array<mixed>>
|
|
*/
|
|
public function rules(): array
|
|
{
|
|
return [
|
|
'aspsp_name' => ['required', 'string'],
|
|
'country' => ['required', 'string', 'size:2'],
|
|
'logo' => ['nullable', 'string', 'url'],
|
|
];
|
|
}
|
|
}
|