Conditions | 1 |
Paths | 1 |
Total Lines | 18 |
Code Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
22 | public function up() |
||
23 | { |
||
24 | Schema::create($this->table_menus, function(Blueprint $table) { |
||
25 | $table->increments('id'); |
||
26 | $table->string('name')->index(); |
||
27 | $table->string('permission')->nullable()->index(); |
||
28 | $table->string('title'); |
||
29 | $table->string('description')->nullable(); |
||
30 | $table->string('route')->nullable(); |
||
31 | $table->string('icon')->nullable(); |
||
32 | $table->boolean('is_active')->default(1); |
||
33 | $table->boolean('is_protected')->default(0); |
||
34 | NestedSet::columns($table); |
||
35 | $table->timestamps(); |
||
36 | |||
37 | |||
38 | }); |
||
39 | } |
||
40 | |||
51 |
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.