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