public static function getByState($state) { $instance = new static(); return $instance->where('state', $state)->get(); }