File: D:/HostingSpaces/SBogers10/ridderstee.komma.pro/app/commands/sendMailAddresses.php
<?php
use Illuminate\Console\Command;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Input\InputArgument;
class sendMailAddresses extends Command {
/**
* The console command name.
*
* @var string
*/
protected $name = 'mailingList:send';
/**
* The console command description.
*
* @var string
*/
protected $description = 'Command description.';
/**
* Create a new command instance.
*
* @return void
*/
public function __construct()
{
parent::__construct();
}
/**
* Execute the console command.
*
* @return mixed
*/
public function fire()
{
$mailService = new \Komma\Mailers\MailService();
$mailService->sendNewsLetterAddress();
$this->comment('Send the mail addresses of this month: '.date('m'));
}
/**
* Get the console command arguments.
*
* @return array
*/
protected function getArguments()
{
return [];
}
/**
* Get the console command options.
*
* @return array
*/
protected function getOptions()
{
return [];
}
}