Conditions | 1 |
Paths | 1 |
Total Lines | 21 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
1 | <?php |
||
14 | public function up() |
||
15 | { |
||
16 | |||
17 | Schema::create('Permission', function (Blueprint $table) { |
||
18 | $table->increments('id'); |
||
19 | $table->string('key', 100); |
||
20 | $table->string('description', 250); |
||
21 | |||
22 | $table->unique('key'); |
||
23 | }); |
||
24 | |||
25 | Schema::create('Permission_Entity', function (Blueprint $table) { |
||
26 | $table->increments('id'); |
||
27 | $table->text('permission'); |
||
28 | |||
29 | $table->timestamps(); |
||
30 | $table->softDeletes(); |
||
31 | $table->creation(); |
||
32 | }); |
||
33 | |||
34 | } |
||
35 | |||
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.