double() 공개 메소드

Add a double field to the map.
public double ( string $field, array $attributes = [] ) : Illuminate\Support\Fluent
$field string
$attributes array
리턴 Illuminate\Support\Fluent
예제 #1
0
 /**
  * @test
  */
 public function it_adds_a_double_map()
 {
     $blueprint = new Blueprint('post');
     $blueprint->create();
     $blueprint->double('temp');
     $statement = $blueprint->toDSL($this->getGrammar());
     $this->assertEquals(['temp' => ['type' => 'double']], $statement);
 }