feat: Implement client status validation on login, refine password rules, and simplify customer resource status.
This commit is contained in:
@@ -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,
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user