public function point($field, $attributes = []) { return $this->addField('point', $field, $attributes); }
/** * @test */ public function it_adds_a_geo_point_map() { $blueprint = new Blueprint('post'); $blueprint->create(); $blueprint->point('coordinate'); $statement = $blueprint->toDSL($this->getGrammar()); $this->assertEquals(['coordinate' => ['type' => 'geo_point']], $statement); }