osb/app/Console/Commands/Ezypay/PaymentsImport.php

35 lines
587 B
PHP

<?php
namespace App\Console\Commands\Ezypay;
use Illuminate\Console\Command;
use App\Classes\External\Payments\Ezypay;
use App\Jobs\PaymentsImport as Job;
class PaymentsImport extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'ezypay:payment:import';
/**
* The console command description.
*
* @var string
*/
protected $description = 'Retrieve payments from Ezypay';
/**
* Execute the console command.
*
* @return mixed
*/
public function handle()
{
Job::dispatchSync(new Ezypay);
}
}