Sleimanx2\Plastic\Map\Blueprint::create PHP Метод

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

Indicate that the table needs to be created.
public create ( ) : Illuminate\Support\Fluent
Результат Illuminate\Support\Fluent
    public function create()
    {
        return $this->addCommand('create');
    }

Usage Example

Пример #1
0
 /**
  * @test
  */
 public function it_adds_a_object_map()
 {
     $blueprint = new Blueprint('post');
     $blueprint->create();
     $blueprint->object('tags', function ($blueprint) {
         $blueprint->string('name');
     });
     $statement = $blueprint->toDSL($this->getGrammar());
     $this->assertEquals(['tags' => ['properties' => ['name' => ['type' => 'string']]]], $statement);
 }