where("user_id", $user_id); } public function scopeBand($query, $band_id) { return $query->where("band_id", $band_id); } }