where("user_id", $user_id); } public function scopeBand($query, $band_id) { return $query->where("band_id", $band_id); } public function scopeTimes($query, $start_time, $end_time) { return $query->where('created_at', '>=', $start_time)->where("created_at", '<', $end_time); } }