| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 2 |
| 1 | <?php |
||
| 13 | public function up() |
||
| 14 | { |
||
| 15 | Schema::create('racks', function (Blueprint $table) { |
||
| 16 | $table->increments('id'); |
||
| 17 | $table->integer('warehouse_id')->unsigned(); |
||
| 18 | $table->foreign('warehouse_id')->references('id')->on('warehouses')->onDelete('cascade'); |
||
| 19 | $table->string('name'); |
||
| 20 | $table->integer('make_id')->unsigned(); |
||
| 21 | $table->foreign('make_id')->references('id')->on('makes')->onDelete('cascade'); |
||
| 22 | $table->integer('capacity'); |
||
| 23 | $table->softDeletes(); |
||
| 24 | }); |
||
| 25 | } |
||
| 26 | |||
| 37 |
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.