Files
alrahma_sunday_school_api/app/Http/Requests/Inventory/SupplierUpdateRequest.php
T
2026-03-10 18:21:08 -04:00

25 lines
578 B
PHP

<?php
namespace App\Http\Requests\Inventory;
use App\Http\Requests\ApiFormRequest;
class SupplierUpdateRequest extends ApiFormRequest
{
public function authorize(): bool
{
return auth()->check();
}
public function rules(): array
{
return [
'name' => ['sometimes', 'string', 'max:255'],
'email' => ['nullable', 'email', 'max:255'],
'phone' => ['nullable', 'string', 'max:50'],
'address' => ['nullable', 'string', 'max:255'],
'notes' => ['nullable', 'string'],
];
}
}