complete story 6.3 with qa tests

This commit is contained in:
Naser Mansour
2025-12-27 19:58:29 +02:00
parent 9c9bef0b25
commit 07fc38de8d
12 changed files with 1135 additions and 36 deletions
+16
View File
@@ -166,6 +166,22 @@ class Consultation extends Model
}
}
/**
* Scope for pending consultations.
*/
public function scopePending(Builder $query): Builder
{
return $query->where('status', ConsultationStatus::Pending);
}
/**
* Scope for approved consultations.
*/
public function scopeApproved(Builder $query): Builder
{
return $query->where('status', ConsultationStatus::Approved);
}
/**
* Scope for upcoming approved consultations.
*/