HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/SBogers10/zelfverkopen.komma.pro/app/Console/Commands/Realworks.php
<?php

namespace App\Console\Commands;

use App\KommaApp\Realworks\Kms\RealWorksService;
use Illuminate\Console\Command;

class Realworks extends Command
{
    /**
     * The name and signature of the console command.
     *
     * @var string
     */
    protected $signature = 'realworks:update';

    /**
     * The console command description.
     *
     * @var string
     */
    protected $description = 'Fetches data from realworks and updates this app with it. WARNING! Only run once a day to comply to Realworks regulations. Check their regulations first!';

    /**
     * Create a new command instance.
     *
     * @return void
     */
    public function __construct()
    {
        parent::__construct();
    }

    /**
     * Execute the console command.
     *
     * @return mixed
     */
    public function handle()
    {
        $this->info('Running realworks update...');
        $this->info('Please wait...');
        (new RealWorksService())->executeSchedule();
        $this->info('Realworks update complete!');
    }
}