| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | |||
| 16 | Schema::create('attacher_images', function (Blueprint $table) |
||
| 17 | { |
||
| 18 | $table->increments('id'); |
||
| 19 | $table->unsignedInteger('owner_id')->index(); |
||
| 20 | $table->string('owner_type')->index(); |
||
| 21 | $table->string('file_extension'); |
||
| 22 | $table->string("file_name")->nullable(); |
||
| 23 | $table->smallInteger("file_size", FALSE, TRUE)->nullable(); |
||
| 24 | $table->string("mime_type")->nullable(); |
||
| 25 | $table->timestamps(); |
||
| 26 | }); |
||
| 27 | |||
| 28 | } |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Reverse the migrations. |
||
| 40 |
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.