26 lines
679 B
PHP
26 lines
679 B
PHP
<?php
|
|
|
|
namespace App\Http\Requests\Whatsapp;
|
|
|
|
use App\Http\Requests\ApiFormRequest;
|
|
|
|
class WhatsappLinkUpdateRequest extends ApiFormRequest
|
|
{
|
|
public function authorize(): bool
|
|
{
|
|
return auth()->check();
|
|
}
|
|
|
|
public function rules(): array
|
|
{
|
|
return [
|
|
'class_section_id' => ['sometimes', 'integer', 'min:1'],
|
|
'class_section_name' => ['nullable', 'string', 'max:255'],
|
|
'school_year' => ['nullable', 'string', 'max:20'],
|
|
'semester' => ['nullable', 'string', 'max:20'],
|
|
'invite_link' => ['nullable', 'string', 'max:2000'],
|
|
'active' => ['nullable', 'boolean'],
|
|
];
|
|
}
|
|
}
|