Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
20 | public function up() |
||
21 | { |
||
22 | Schema::create(config('rally.followers_table', 'followables'), function (Blueprint $table) { |
||
23 | $table->increments('id'); |
||
24 | $table->integer('follower_id')->unsigned()->index(); |
||
25 | $table->morphs('followable'); |
||
26 | $table->timestamps(); |
||
27 | $table->foreign('follower_id') |
||
28 | ->references('id') |
||
29 | ->on(config('rally.follower_table', 'users')) |
||
30 | ->onUpdate('cascade') |
||
31 | ->onDelete('cascade'); |
||
32 | }); |
||
33 | } |
||
34 | |||
43 |
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.