Conditions | 2 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
34 | protected function createTable(Model $model) |
||
35 | { |
||
36 | $this->app['db']->connection()->getSchemaBuilder()->create( |
||
37 | $model->getTable(), |
||
38 | function (\Illuminate\Database\Schema\Blueprint $table) use ($model) { |
||
39 | $table->increments('id'); |
||
40 | foreach ($model->getFillable() as $column) { |
||
41 | $table->string($column)->nullable(); |
||
42 | } |
||
47 |