File: D:/HostingSpaces/SBogers10/ridderstee.komma.pro/app/commands/sendLeads.php
<?php
use Illuminate\Console\Command;
class sendLeads extends Command {
/**
* The console command name.
*
* @var string
*/
protected $name = 'leads:send';
/**
* The console command description.
*
* @var string
*/
protected $description = 'Send the leads of this week.';
/**
* 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->sendLeads();
$this->comment('Send the lead of this week: '.date('W'));
}
/**
* Get the console command arguments.
*
* @return array
*/
protected function getArguments()
{
return array(
);
}
/**
* Get the console command options.
*
* @return array
*/
protected function getOptions()
{
return array(
);
}
}