feat: Implement client status validation on login, refine password rules, and simplify customer resource status.

This commit is contained in:
pbao9
2026-03-10 16:27:23 +07:00
parent cf0f2cf686
commit 7fdcc01027
18 changed files with 831 additions and 12 deletions
@@ -15,12 +15,7 @@ class CustomerResource extends JsonResource
'email' => $this->email,
'phone' => $this->phone,
'company' => $this->company,
'status' => match ((int) $this->status) {
1 => 'active',
2 => 'inactive',
3 => 'suspended',
default => 'pending',
},
'status' => (int) $this->status,
'total' => (int) $this->total,
'created_at' => $this->created_at,
];