mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-05-15 09:45:01 +00:00
Searching frontend
This commit is contained in:
@@ -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! 🥳🥳🥳');
|
||||
}
|
||||
|
||||
|
||||
@@ -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'
|
||||
]);
|
||||
}
|
||||
}
|
||||
@@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user