Conditions | 1 |
Paths | 1 |
Total Lines | 16 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
42 | protected function setUpDatabase() |
||
43 | { |
||
44 | $this->app['db']->connection()->getSchemaBuilder()->create('dummies', function (Blueprint $table) { |
||
45 | $table->increments('id'); |
||
46 | $table->string('name'); |
||
47 | $table->string('custom_column_sort'); |
||
48 | $table->integer('order_column'); |
||
49 | }); |
||
50 | |||
51 | collect(range(1, 20))->each(function (int $i) { |
||
52 | Dummy::create([ |
||
53 | 'name' => $i, |
||
54 | 'custom_column_sort' => rand(), |
||
55 | ]); |
||
56 | }); |
||
57 | } |
||
58 | |||
66 |