Your IP : 216.73.217.77


Current Path : /home/users/unlimited/www/sigmaerp.codeskitter.site/app/Console/Commands/
Upload File :
Current File : /home/users/unlimited/www/sigmaerp.codeskitter.site/app/Console/Commands/ClearErrorLog.php

<?php

namespace App\Console\Commands;

use Illuminate\Console\Command;
use Illuminate\Support\Facades\Log;

class ClearErrorLog extends Command
{
    /**
     * The name and signature of the console command.
     *
     * @var string
     */
    protected $signature = 'log:clear-error-log';

    /**
     * The console command description.
     *
     * @var string
     */
    protected $description = 'Command description';

    /**
     * Execute the console command.
     */
    public function handle()
    {
        foreach (Log::getChannels() as $channel) {
            Log::channel($channel)->clear();
        }
        $this->info(__('app.cleared_error_log_file'));
    }
}