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,26 @@
<?php
namespace App\Http\Requests\Whatsapp;
use App\Http\Requests\ApiFormRequest;
class WhatsappMembershipUpdateRequest extends ApiFormRequest
{
public function authorize(): bool
{
return auth()->check();
}
public function rules(): array
{
return [
'class_section_id' => ['required', 'integer', 'min:1'],
'primary_id' => ['nullable', 'integer', 'min:1'],
'second_id' => ['nullable', 'integer', 'min:1'],
'primary_member' => ['nullable', 'boolean'],
'second_member' => ['nullable', 'boolean'],
'school_year' => ['nullable', 'string', 'max:20'],
'semester' => ['nullable', 'string', 'max:20'],
];
}
}