feat(pegawai): menambahkan kondisi hanya barber active di scopeBarber model
This commit is contained in:
parent
4133511eaf
commit
ca38be8bdb
@ -41,7 +41,8 @@ public function scopeBarbershop(Builder $query): Builder
|
||||
|
||||
public function scopeBarber(Builder $query): Builder
|
||||
{
|
||||
return $query->where('role_id', 5);
|
||||
return $query->where('role_id', 5)
|
||||
->where('is_active', '1');
|
||||
}
|
||||
|
||||
public function role(): BelongsTo
|
||||
|
||||
Loading…
Reference in New Issue
Block a user