mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-21 04:10:55 -04:00
35 lines
785 B
PHP
35 lines
785 B
PHP
<?php
|
|
|
|
/**
|
|
* Invoice Ninja (https://invoiceninja.com).
|
|
*
|
|
* @link https://github.com/invoiceninja/invoiceninja source repository
|
|
*
|
|
* @copyright Copyright (c) 2024. Invoice Ninja LLC (https://invoiceninja.com)
|
|
*
|
|
* @license https://www.elastic.co/licensing/elastic-license
|
|
*/
|
|
|
|
namespace App\Http\Requests\GoCardless;
|
|
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
|
|
class WebhookRequest extends FormRequest
|
|
{
|
|
public function authorize(): bool
|
|
{
|
|
return true;
|
|
}
|
|
|
|
/**
|
|
* @return array<string, \Illuminate\Contracts\Validation\ValidationRule|array<mixed>|string>
|
|
*/
|
|
public function rules(): array
|
|
{
|
|
return [
|
|
'events' => ['required', 'array'],
|
|
'events.*.resource_type' => ['required', 'string'],
|
|
];
|
|
}
|
|
}
|