add family logic

This commit is contained in:
root
2026-03-10 17:52:47 -04:00
parent a82f7aedbc
commit 17d73e2f92
37 changed files with 2611 additions and 2 deletions
@@ -0,0 +1,26 @@
<?php
namespace App\Http\Requests\Families;
use App\Http\Requests\ApiFormRequest;
class GuardiansByFamilyRequest extends ApiFormRequest
{
protected function prepareForValidation(): void
{
parent::prepareForValidation();
$this->merge(['family_id' => $this->route('familyId')]);
}
public function authorize(): bool
{
return auth()->check();
}
public function rules(): array
{
return [
'family_id' => ['required', 'integer', 'min:1'],
];
}
}