/** * Get schema configuration by offset name. * * @method schemaByIndex * * @param string $index * * @return mixed */ public function schemaByIndex($index) { $schema = array(); foreach ($this->collection->schema() as $value) { $schema[] = $value; } return empty($schema[$index]) ? null : $schema[$index]; }