src/Providers/ScheduleServiceProvider.php
public function boot()
    {
        $this->app->booted(function () {
            $schedule = $this->app->make(Schedule::class);

            $schedule->command('activitylog:clean')->daily();
            $schedule->command('auth:clear-resets')->daily();

            $schedule->command('backup:clean')->daily()->at('01:00');
            $schedule->command('backup:run')->daily()->at('02:00');
        });
    }
public function boot()
    {
        $this->app->booted(function () {
            $schedule = $this->app->make(Schedule::class);

            $schedule->command('activitylog:clean')->daily();
            $schedule->command('auth:clear-resets')->daily();

            $schedule->command('backup:clean')->daily()->at('01:00');
            $schedule->command('backup:run')->daily()->at('02:00');
        });
    }
public function boot ( ) { $ this -> app -> booted ( function ( ) { $ schedule = $ this -> app -> make ( Schedule :: class ) ; $ schedule -> command ( 'activitylog:clean' ) -> daily ( ) ; $ schedule -> command ( 'auth:clear-resets' ) -> daily ( ) ; $ schedule -> command ( 'backup:clean' ) -> daily ( ) -> at ( '01:00' ) ; $ schedule -> command ( 'backup:run' ) -> daily ( ) -> at ( '02:00' ) ; } ) ; }
Bootstrap any application services.

@return void
Bootstrap any application services .