Total Complexity | 2 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
8 | class DatabaseBackupKernel extends ConsoleKernel |
||
9 | { |
||
10 | /** |
||
11 | * Define the application's command schedule. |
||
12 | * |
||
13 | * @param \Illuminate\Console\Scheduling\Schedule $schedule |
||
14 | * @return void |
||
15 | */ |
||
16 | |||
17 | protected $commands = [ |
||
18 | 'Ikechukwukalu\Databasebackup\Console\Commands\DatabaseBackupCommand' |
||
19 | ]; |
||
20 | |||
21 | protected function schedule(Schedule $schedule) |
||
22 | { |
||
23 | $schedule->command('database:backup')->daily(); |
||
24 | } |
||
25 | |||
26 | /** |
||
27 | * Register the commands for the application. |
||
28 | * |
||
29 | * @return void |
||
30 | */ |
||
31 | protected function commands() |
||
36 | } |
||
37 | } |
||
38 |