Conditions | 1 |
Paths | 1 |
Total Lines | 16 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
16 | public function up(): void |
||
17 | { |
||
18 | Schema::create(config('rinvex.bookings.tables.addons'), function (Blueprint $table) { |
||
19 | // Columns |
||
20 | $table->increments('id'); |
||
21 | $table->morphs('bookable'); |
||
22 | $table->string('name'); |
||
23 | $table->{$this->jsonable()}('title')->nullable(); |
||
24 | $table->{$this->jsonable()}('description')->nullable(); |
||
25 | $table->string('base_cost')->nullable(); |
||
26 | $table->char('base_cost_modifier', 1)->nullable(); |
||
27 | $table->string('unit_cost')->nullable(); |
||
28 | $table->char('unit_cost_modifier', 1)->nullable(); |
||
29 | $table->timestamps(); |
||
30 | }); |
||
31 | } |
||
32 | |||
55 |
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.