Conditions | 1 |
Paths | 1 |
Total Lines | 15 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
1 | <?php |
||
13 | public function up() |
||
14 | { |
||
15 | Schema::create('revisions', function (Blueprint $table) { |
||
16 | $table->increments('id'); |
||
17 | $table->string('revisionable_type'); |
||
18 | $table->integer('revisionable_id'); |
||
19 | $table->integer('user_id')->nullable(); |
||
20 | $table->string('key'); |
||
21 | $table->text('old_value')->nullable(); |
||
22 | $table->text('new_value')->nullable(); |
||
23 | $table->timestamps(); |
||
24 | |||
25 | $table->index(array('revisionable_id', 'revisionable_type')); |
||
26 | }); |
||
27 | } |
||
28 | |||
39 |
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.