Andrew Wallo 10 місяці тому
джерело
коміт
ce2481c9f0

+ 30
- 0
app/Console/Commands/UpdateOverdueInvoices.php Переглянути файл

@@ -0,0 +1,30 @@
1
+<?php
2
+
3
+namespace App\Console\Commands;
4
+
5
+use Illuminate\Console\Command;
6
+
7
+class UpdateOverdueInvoices extends Command
8
+{
9
+    /**
10
+     * The name and signature of the console command.
11
+     *
12
+     * @var string
13
+     */
14
+    protected $signature = 'app:update-overdue-invoices';
15
+
16
+    /**
17
+     * The console command description.
18
+     *
19
+     * @var string
20
+     */
21
+    protected $description = 'Check and mark overdue invoices as overdue';
22
+
23
+    /**
24
+     * Execute the console command.
25
+     */
26
+    public function handle()
27
+    {
28
+        $this->info('Processing overdue invoices...');
29
+    }
30
+}

+ 27
- 0
app/Jobs/ProcessOverdueInvoices.php Переглянути файл

@@ -0,0 +1,27 @@
1
+<?php
2
+
3
+namespace App\Jobs;
4
+
5
+use Illuminate\Contracts\Queue\ShouldQueue;
6
+use Illuminate\Foundation\Queue\Queueable;
7
+
8
+class ProcessOverdueInvoices implements ShouldQueue
9
+{
10
+    use Queueable;
11
+
12
+    /**
13
+     * Create a new job instance.
14
+     */
15
+    public function __construct()
16
+    {
17
+        //
18
+    }
19
+
20
+    /**
21
+     * Execute the job.
22
+     */
23
+    public function handle(): void
24
+    {
25
+        //
26
+    }
27
+}

Завантаження…
Відмінити
Зберегти