@@ -9,7 +9,7 @@ |
||
| 9 | 9 | return new class extends Migration { |
| 10 | 10 | public function up(): void |
| 11 | 11 | { |
| 12 | - Schema::create('invoices', function (Blueprint $table) { |
|
| 12 | + Schema::create('invoices', function(Blueprint $table) { |
|
| 13 | 13 | $table->id(); |
| 14 | 14 | $table->uuid('uuid')->unique(); |
| 15 | 15 | $table->string('number')->unique(); |
@@ -31,7 +31,7 @@ |
||
| 31 | 31 | 'type' => $this->faker->randomElement(array_column(InvoiceType::cases(), 'value')), |
| 32 | 32 | 'external_reference' => $this->faker->optional()->bothify('EXT-####'), |
| 33 | 33 | 'description' => $this->faker->sentence, |
| 34 | - 'status' => $this->faker->randomElement(['draft', 'sent', 'paid', 'cancelled']), |
|
| 34 | + 'status' => $this->faker->randomElement([ 'draft', 'sent', 'paid', 'cancelled' ]), |
|
| 35 | 35 | 'issued_at' => $this->faker->optional()->dateTimeThisYear(), |
| 36 | 36 | 'cancelled_at' => null, |
| 37 | 37 | ]; |
@@ -20,7 +20,7 @@ |
||
| 20 | 20 | 'address' => $this->faker->address, |
| 21 | 21 | 'email' => $this->faker->optional()->safeEmail, |
| 22 | 22 | 'phone' => $this->faker->optional()->phoneNumber, |
| 23 | - 'type' => $this->faker->optional()->randomElement(['VAT', 'PASSPORT', 'NATIONAL_ID', 'RESIDENCE_CERTIFICATE', 'OTHER_DOCUMENT', 'UNREGISTERED']), |
|
| 23 | + 'type' => $this->faker->optional()->randomElement([ 'VAT', 'PASSPORT', 'NATIONAL_ID', 'RESIDENCE_CERTIFICATE', 'OTHER_DOCUMENT', 'UNREGISTERED' ]), |
|
| 24 | 24 | ]; |
| 25 | 25 | } |
| 26 | 26 | } |
| 27 | 27 | \ No newline at end of file |