binary() public method

Add a binary field to the map.
public binary ( string $field, array $attributes = [] ) : Illuminate\Support\Fluent
$field string
$attributes array
return Illuminate\Support\Fluent
示例#1
0
 /**
  * @test
  */
 public function it_adds_a_binary_map()
 {
     $blueprint = new Blueprint('post');
     $blueprint->create();
     $blueprint->binary('binary')->store(true)->doc_values('foo');
     $statement = $blueprint->toDSL($this->getGrammar());
     $this->assertEquals(['binary' => ['type' => 'binary', 'store' => true, 'doc_values' => 'foo']], $statement);
 }