bug fixes, mno,client contract renewals, scheduling
This commit is contained in:
46
app/Console/Commands/ProcessClientContractRenewalAlert.php
Normal file
46
app/Console/Commands/ProcessClientContractRenewalAlert.php
Normal file
@@ -0,0 +1,46 @@
|
||||
<?php
|
||||
|
||||
namespace App\Console\Commands;
|
||||
|
||||
use Illuminate\Console\Command;
|
||||
use App\Http\Controllers\ClientContractRenewalAlertsController;
|
||||
|
||||
class ProcessClientContractRenewalAlert extends Command
|
||||
{
|
||||
/**
|
||||
* The name and signature of the console command.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $signature = 'client_renewal:send';
|
||||
|
||||
/**
|
||||
* The console command description.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $description = 'Send notices on client pending contract renewals';
|
||||
|
||||
/**
|
||||
* Create a new command instance.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function __construct(ClientContractRenewalAlertsController $client_contractRenewalReminder)
|
||||
{
|
||||
parent::__construct();
|
||||
$this->client_contractRenewalReminder = $client_contractRenewalReminder;
|
||||
}
|
||||
|
||||
/**
|
||||
* Execute the console command.
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function handle()
|
||||
{
|
||||
|
||||
$this->client_contractRenewalReminder->getClientDetails();
|
||||
\Log::info('SendClientContractRenewalReminders command completed...');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user