25 lines
641 B
PHP
25 lines
641 B
PHP
<?php
|
|
|
|
namespace App\Http\Requests\Admin;
|
|
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
|
|
class UpdateAdminHouseholdRequest extends FormRequest
|
|
{
|
|
public function authorize(): bool
|
|
{
|
|
return true;
|
|
}
|
|
|
|
public function rules(): array
|
|
{
|
|
return [
|
|
'address_line' => ['required', 'string', 'max:255'],
|
|
'lat' => ['required', 'numeric', 'between:-90,90'],
|
|
'lng' => ['required', 'numeric', 'between:-180,180'],
|
|
'barangay_id' => ['required', 'integer', 'exists:barangays,id'],
|
|
'household_size' => ['required', 'integer', 'min:1', 'max:50'],
|
|
];
|
|
}
|
|
}
|