command('payments:accounts') ->sendOutputTo(storage_path('logs/cron.log')) ->appendOutputTo(storage_path('logs/cron-history.log')) ->emailOutputOnFailure(config('app.exception_mail')) ->onFailure(function () { \Log::error('Payments:accounts command failed'); }); } /** * Register the commands for the application. * * @return void */ protected function commands() { $this->load(__DIR__.'/Commands'); require base_path('routes/console.php'); } }