finished story 2.1 with qa test and added future recommendations for the dev

This commit is contained in:
Naser Mansour
2025-12-26 15:23:53 +02:00
parent 22fc7d7ae1
commit 0ec089bbb1
14 changed files with 1732 additions and 0 deletions
+16
View File
@@ -133,6 +133,22 @@ class User extends Authenticatable
return $query->whereIn('user_type', [UserType::Individual, UserType::Company]);
}
/**
* Scope to filter individual clients.
*/
public function scopeIndividual($query)
{
return $query->where('user_type', UserType::Individual);
}
/**
* Scope to filter company clients.
*/
public function scopeCompanies($query)
{
return $query->where('user_type', UserType::Company);
}
/**
* Scope to filter active users.
*/