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
+3 -3
View File
@@ -73,14 +73,14 @@ class SetupDevEnvironment extends Command
$this->info('Clearing application cache...');
$this->clear_cache();
// Oasis demo content generator
resolve(OasisDevService::class)->create_demo_content();
$this->info('Dispatching jobs...');
$this->call('queue:work', [
'--stop-when-empty' => true,
]);
// Oasis demo content generator
resolve(OasisDevService::class)->create_demo_content();
$this->info('Everything is done, congratulations! 🥳🥳🥳');
}
+2 -2
View File
@@ -31,7 +31,7 @@ class OasisDevService
))->count(14)
->create([
'user_id' => $user->id,
'invoice_type' => 'regular_invoice'
'invoice_type' => 'regular-invoice'
]);
Invoice::factory(Invoice::class)
@@ -45,7 +45,7 @@ class OasisDevService
['client_id' => $clients[5]->id],
))->create([
'user_id' => $user->id,
'invoice_type' => 'advance_invoice'
'invoice_type' => 'advance-invoice'
]);
}
}
+2 -2
View File
@@ -25,11 +25,11 @@ trait Oasis
public function regularInvoices()
{
return $this->hasMany(Invoice::class)->whereInvoiceType('regular_invoice');
return $this->hasMany(Invoice::class)->whereInvoiceType('regular-invoice');
}
public function advanceInvoices()
{
return $this->hasMany(Invoice::class)->whereInvoiceType('advance_invoice');
return $this->hasMany(Invoice::class)->whereInvoiceType('advance-invoice');
}
}