Conditions | 1 |
Paths | 1 |
Total Lines | 19 |
Code Lines | 15 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
16 | public function up(): void |
||
17 | { |
||
18 | Schema::create(config('rinvex.bookings.tables.bookable_bookings'), function (Blueprint $table) { |
||
19 | // Columns |
||
20 | $table->increments('id'); |
||
21 | $table->morphs('bookable'); |
||
22 | $table->morphs('customer'); |
||
23 | $table->string('currency', 3); |
||
24 | $table->dateTime('starts_at')->nullable(); |
||
25 | $table->dateTime('ends_at')->nullable(); |
||
26 | $table->dateTime('cancelled_at')->nullable(); |
||
27 | $table->string('timezone')->nullable(); |
||
28 | $table->decimal('price')->default('0.00'); |
||
29 | $table->{$this->jsonable()}('price_equation')->nullable(); |
||
30 | $table->text('notes')->nullable(); |
||
31 | $table->timestamps(); |
||
32 | $table->softDeletes(); |
||
33 | }); |
||
34 | } |
||
35 | |||
58 |
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.