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