byte() публичный Метод

Add a byte numeric field to the map.
public byte ( string $field, array $attributes = [] ) : Illuminate\Support\Fluent
$field string
$attributes array
Результат Illuminate\Support\Fluent
Пример #1
0
 /**
  * @test
  */
 public function it_adds_a_byte_map()
 {
     $blueprint = new Blueprint('post');
     $blueprint->create();
     $blueprint->byte('size');
     $statement = $blueprint->toDSL($this->getGrammar());
     $this->assertEquals(['size' => ['type' => 'byte']], $statement);
 }