Conditions | 1 |
Paths | 1 |
Total Lines | 22 |
Code Lines | 18 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
23 | public function up() |
||
24 | { |
||
25 | Schema::create('image_transformations', function (Blueprint $table) { |
||
26 | $table->increments('id'); |
||
27 | $table->integer('image_id')->unsigned(); |
||
28 | $table->string('name'); |
||
29 | $table->string('filename'); |
||
30 | $table->string('disk'); |
||
31 | $table->string('width')->nullable(); |
||
32 | $table->string('height')->nullable(); |
||
33 | $table->string('quality')->nullable(); |
||
34 | $table->integer('size')->nullable(); |
||
35 | $table->timestamps(); |
||
36 | $table->softDeletes(); |
||
37 | |||
38 | $table->foreign('image_id') |
||
39 | ->references('id') |
||
40 | ->on('images') |
||
41 | ->onDelete('cascade') |
||
42 | ->onUpdate('cascade'); |
||
43 | }); |
||
44 | } |
||
45 | |||
55 | } |
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.