source: app/Console/Kernel.php

Last change on this file was c5e383e, checked in by beratkjufliju <kufliju@…>, 3 years ago

added db and storage backup

  • Property mode set to 100644
File size: 959 bytes
RevLine 
[2fc88ec]1<?php
2
3namespace App\Console;
4
5use Illuminate\Console\Scheduling\Schedule;
6use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
7
8class Kernel extends ConsoleKernel
9{
10 /**
11 * The Artisan commands provided by your application.
12 *
13 * @var array
14 */
15 protected $commands = [
16 //
17 ];
18
19 /**
20 * Define the application's command schedule.
21 *
22 * @param \Illuminate\Console\Scheduling\Schedule $schedule
23 * @return void
24 */
25 protected function schedule(Schedule $schedule)
26 {
27 // $schedule->command('inspire')->hourly();
[c5e383e]28 //$schedule->command('backup:clean')->daily()->at('17:00');
29 $schedule->command('backup:run')->daily()->at('08:00');
[2fc88ec]30 }
31
32 /**
33 * Register the commands for the application.
34 *
35 * @return void
36 */
37 protected function commands()
38 {
39 $this->load(__DIR__.'/Commands');
40
41 require base_path('routes/console.php');
42 }
43}
Note: See TracBrowser for help on using the repository browser.