| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| 1 | <?php |
||
| 13 | public function up() |
||
| 14 | { |
||
| 15 | Schema::create('captain_hook_logs', function (Blueprint $table) { |
||
| 16 | $table->increments('id'); |
||
| 17 | $table->integer('webhook_id')->unsigned()->nullable(); |
||
| 18 | $table->foreign('webhook_id')->references('id')->on('webhooks')->onDelete('set null'); |
||
| 19 | $table->string('url'); |
||
| 20 | $table->string('payload_format')->nullable(); |
||
| 21 | $table->text('payload'); |
||
| 22 | $table->integer('status'); |
||
| 23 | $table->text('response'); |
||
| 24 | $table->string('response_format')->nullable(); |
||
| 25 | $table->timestamps(); |
||
| 26 | }); |
||
| 27 | } |
||
| 28 | |||
| 39 |
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.