Conditions | 1 |
Paths | 1 |
Total Lines | 25 |
Code Lines | 19 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
14 | public function up() |
||
15 | { |
||
16 | Schema::table('workflow_guards', function(Blueprint $table){ |
||
17 | $table->foreign('workflow_id') |
||
18 | ->references('id') |
||
19 | ->on('workflows') |
||
20 | ->onDelete('set null') |
||
21 | ->onUpdate('restrict'); |
||
22 | }); |
||
23 | Schema::table('workflow_guards', function(Blueprint $table){ |
||
24 | $table->foreign('transition_id') |
||
25 | ->references('id') |
||
26 | ->on('workflow_transition') |
||
27 | ->onDelete('set null') |
||
28 | ->onUpdate('restrict'); |
||
29 | }); |
||
30 | Schema::table('workflow_guards', function(Blueprint $table){ |
||
31 | $table->foreign('permission_id') |
||
32 | ->references('id') |
||
33 | ->on('permissions') |
||
34 | ->onDelete('set null') |
||
35 | ->onUpdate('restrict'); |
||
36 | }); |
||
37 | |||
38 | } |
||
39 | |||
58 |
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.