Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
n/a
0 / 0
n/a
0 / 0
CRAP
n/a
0 / 0
Kernel
n/a
0 / 0
n/a
0 / 0
2
n/a
0 / 0
 schedule
n/a
0 / 0
n/a
0 / 0
1
 commands
n/a
0 / 0
n/a
0 / 0
1
1<?php
2
3namespace App\Console;
4
5use App\Console\Commands\DeleteUnconfirmedCustomers;
6use App\Jobs\StartStatJobs;
7use Illuminate\Console\Scheduling\Schedule;
8use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
9
10/**
11 * @codeCoverageIgnore
12 */
13class Kernel extends ConsoleKernel
14{
15    /**
16     * The Artisan commands provided by your application.
17     *
18     * @var array
19     */
20    protected $commands = [];
21
22    /**
23     * Define the application's command schedule.
24     *
25     * @param  \Illuminate\Console\Scheduling\Schedule $schedule
26     * @return void
27     */
28    protected function schedule(Schedule $schedule)
29    {
30        $schedule->job(StartStatJobs::class)->dailyAt('03:30');
31        $schedule->command(DeleteUnconfirmedCustomers::class)->dailyAt('05:30');
32    }
33
34    /**
35     * Register the commands for the application.
36     *
37     * @return void
38     */
39    protected function commands()
40    {
41        $this->load(__DIR__ . '/Commands');
42
43        require base_path('routes/console.php');
44    }
45}