add inventory and supply logic

This commit is contained in:
root
2026-03-10 18:21:08 -04:00
parent 17d73e2f92
commit 25e7b3c67c
62 changed files with 3846 additions and 2781 deletions
@@ -0,0 +1,24 @@
<?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'],
];
}
}