File: D:/HostingSpaces/ZelfVerkopen/zelfverkopen.nl/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!');
}
}