| Conditions | 1 |
| Paths | 1 |
| Total Lines | 24 |
| Code Lines | 18 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | public function migrateUp() |
||
| 20 | { |
||
| 21 | $this->builder->create( |
||
| 22 | $this->table, |
||
| 23 | function ($table) { |
||
| 24 | $table->bigIncrements('id'); |
||
| 25 | |||
| 26 | $table->bigInteger('session_id')->unsigned()->index(); |
||
| 27 | $table->bigInteger('path_id')->unsigned()->nullable()->index(); |
||
| 28 | $table->bigInteger('query_id')->unsigned()->nullable()->index(); |
||
| 29 | $table->string('method', 10)->index(); |
||
| 30 | $table->bigInteger('route_path_id')->unsigned()->nullable()->index(); |
||
| 31 | $table->boolean('is_ajax'); |
||
| 32 | $table->boolean('is_secure'); |
||
| 33 | $table->boolean('is_json'); |
||
| 34 | $table->boolean('wants_json'); |
||
| 35 | $table->bigInteger('error_id')->unsigned()->nullable()->index(); |
||
| 36 | |||
| 37 | $table->timestamps(); |
||
| 38 | $table->index('created_at'); |
||
| 39 | $table->index('updated_at'); |
||
| 40 | } |
||
| 41 | ); |
||
| 42 | } |
||
| 43 | |||
| 54 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.