feat: Implement client status validation on login, refine password rules, and simplify customer resource status.
This commit is contained in:
@@ -34,6 +34,11 @@ class Invoice extends Model
|
||||
return $this->belongsTo(\App\Models\Order::class, 'id', 'invoice_id');
|
||||
}
|
||||
|
||||
public function attachments()
|
||||
{
|
||||
return $this->hasMany(\App\Models\InvoiceAttachment::class);
|
||||
}
|
||||
|
||||
public function getStatus()
|
||||
{
|
||||
return match ($this->attributes['status']) {
|
||||
|
||||
Reference in New Issue
Block a user