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