Conditions | 1 |
Paths | 1 |
Total Lines | 18 |
Code Lines | 15 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
15 | public function up() |
||
16 | { |
||
17 | Schema::create('sites', function (Blueprint $table) { |
||
18 | $table->increments('id'); |
||
19 | $table->string('url'); |
||
20 | $table->boolean('enabled')->default(true); |
||
21 | $table->string('look_for_string')->default(''); |
||
22 | $table->string('uptime_status')->default(UptimeStatus::NOT_YET_CHECKED); |
||
23 | $table->string('last_failure_reason')->default(''); |
||
24 | $table->integer('times_failed_in_a_row')->default(0); |
||
25 | $table->timestamp('last_uptime_status_change_on')->nullable(); |
||
26 | $table->timestamp('uptime_last_checked_on')->nullable(); |
||
27 | $table->boolean('check_ssl_certificate')->default(false); |
||
28 | $table->string('ssl_certificate_status')->default(SslCertificateStatus::NOT_YET_CHECKED); |
||
29 | $table->timestamp('ssl_certificate_expiration_date')->nullable(); |
||
30 | $table->timestamps(); |
||
31 | }); |
||
32 | } |
||
33 | |||
44 |
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.