| Conditions | 1 |
| Paths | 1 |
| Total Lines | 17 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | public function up() |
||
| 14 | { |
||
| 15 | Schema::create('firewall_logs', function (Blueprint $table) { |
||
| 16 | $table->increments('id'); |
||
| 17 | $table->string('ip'); |
||
| 18 | $table->string('level')->default('medium'); |
||
| 19 | $table->string('middleware'); |
||
| 20 | $table->integer('user_id')->nullable(); |
||
| 21 | $table->string('url')->nullable(); |
||
| 22 | $table->string('referrer')->nullable(); |
||
| 23 | $table->text('request')->nullable(); |
||
| 24 | $table->timestamps(); |
||
| 25 | $table->softDeletes(); |
||
| 26 | |||
| 27 | $table->index('ip'); |
||
| 28 | }); |
||
| 29 | } |
||
| 30 | |||
| 41 |