Searching frontend

This commit is contained in:
Peter Papp
2021-04-22 10:06:31 +02:00
parent 73861f814c
commit 3774a05edd
14 changed files with 111 additions and 40 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ class InvoiceFactory extends Factory
'id' => $this->faker->uuid,
'user_id' => $this->faker->uuid,
'client_id' => $this->faker->uuid,
'invoice_type' => $this->faker->randomElement(['regular_invoice', 'advance_invoice']),
'invoice_type' => $this->faker->randomElement(['regular-invoice', 'advance-invoice']),
'invoice_number' => $this->faker->numberBetween(2120001, 2120999),
'variable_number' => $this->faker->numberBetween(2120001, 2120999),
'currency' => $this->faker->randomElement(['CZK', 'EUR']),
@@ -18,7 +18,7 @@ class CreateInvoicesTable extends Migration
$table->uuid('user_id')->index();
$table->uuid('client_id')->index();
$table->enum('invoice_type', ['regular_invoice', 'advance_invoice']);
$table->enum('invoice_type', ['regular-invoice', 'advance-invoice']);
$table->text('invoice_number')->nullable();
$table->text('variable_number')->nullable();