add whatsup logic

This commit is contained in:
root
2026-03-10 16:31:35 -04:00
parent 20ee70d153
commit 3bf4c687da
33 changed files with 2800 additions and 1329 deletions
@@ -0,0 +1,25 @@
<?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'],
];
}
}