Conditions | 1 |
Paths | 1 |
Total Lines | 15 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
15 | public function up() |
||
16 | { |
||
17 | Schema::create('files', function (Blueprint $table) { |
||
18 | $table->increments('id'); |
||
19 | $table->string('file_id')->unique(); |
||
20 | $table->string('name'); |
||
21 | $table->string('extension')->nullable(); |
||
22 | $table->string('path')->nullable(); |
||
23 | $table->string('mime_type'); |
||
24 | $table->integer('byte_size'); |
||
25 | $table->json('data'); |
||
26 | $table->string('disk'); |
||
27 | $table->dateTime('saved_at'); |
||
28 | }); |
||
29 | } |
||
30 | |||
42 |
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.