Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 4
0.00% covered (danger)
0.00%
0 / 1
CRAP
0.00% covered (danger)
0.00%
0 / 1
SendRequestNotification
0.00% covered (danger)
0.00%
0 / 4
0.00% covered (danger)
0.00%
0 / 1
6
0.00% covered (danger)
0.00%
0 / 1
 handle
0.00% covered (danger)
0.00%
0 / 4
0.00% covered (danger)
0.00%
0 / 1
6
1<?php
2
3namespace App\Console\Commands;
4
5use App\Http\Controllers\Notifications;
6use Illuminate\Console\Command;
7use Illuminate\Support\Facades\Log;
8
9class SendRequestNotification extends Command
10{
11    /**
12     * The name and signature of the console command.
13     *
14     * @var string
15     */
16    protected $signature = 'send:request-notification';
17
18    /**
19     * The console command description.
20     *
21     * @var string
22     */
23    protected $description = 'Send email request notification';
24
25    /**
26     * Execute the console command.
27     */
28    public function handle(): void
29    {
30        try {
31
32            $notifications = new Notifications;
33            $notifications->send_request_notification(1);
34
35        } catch (\Exception $e) {
36            Log::channel('cron_send_request_notification')->error($e->getMessage());
37        }
38
39    }
40}