belongsTo(\App\Models\Core\Auth\UserStatus::class); } public function team() { return $this->belongsTo(\App\Models\Core\Auth\Team::class); } public function scopeByUserStatus($query, $id) { return $query->where('user_status_id', $id); } public function scopeByTeam($query, $id) { return $query->where('team_id', $id); } }