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