You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
920 B

<?php
namespace App\Http\Requests\Admin;
use App\Models\SignupChannel;
use Illuminate\Foundation\Http\FormRequest;
use Illuminate\Validation\Rule;
class UpdateSignupChannelRequest extends FormRequest
{
public function authorize(): bool
{
return true;
}
/**
* @return array<string, mixed>
*/
public function rules(): array
{
return [
'channel_code' => ['prohibited'],
'competition_id' => ['prohibited'],
'channel_name' => ['sometimes', 'string', 'max:200'],
'status' => ['sometimes', Rule::in(SignupChannel::STATUSES)],
'shared_secret' => ['sometimes', 'string', 'max:255'],
4 months ago
'entry_encryption_enabled' => ['sometimes', 'boolean'],
4 months ago
'success_callback_url' => ['sometimes', 'nullable', 'url', 'max:2048'],
'remark' => ['sometimes', 'nullable', 'string'],
];
}
}