| Conditions | 1 |
| Paths | 1 |
| Total Lines | 17 |
| Code Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | public function up() |
||
| 23 | { |
||
| 24 | Schema::create('friends', function (Blueprint $table) { |
||
| 25 | $table->unsignedInteger('sender_id')->index(); |
||
| 26 | $table->foreign('sender_id') |
||
| 27 | ->references('id') |
||
| 28 | ->on(Config::get('friends.users_table')) |
||
| 29 | ->onDelete('cascade'); |
||
| 30 | $table->unsignedInteger('recipient_id')->index(); |
||
| 31 | $table->foreign('recipient_id') |
||
| 32 | ->references('id') |
||
| 33 | ->on(Config::get('friends.users_table')) |
||
| 34 | ->onDelete('cascade'); |
||
| 35 | $table->tinyInteger('friendship_status')->default(0); |
||
| 36 | $table->timestamps(); |
||
| 37 | }); |
||
| 38 | } |
||
| 39 | |||
| 50 |
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.