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