modified add allowed login.

This commit is contained in:
2020-07-23 22:25:32 -05:00
parent 427759a98e
commit cf98e875ee
3 changed files with 33 additions and 5 deletions
@@ -11,14 +11,14 @@ class EndSupplyChainContractCommand extends Command
* *
* @var string * @var string
*/ */
protected $signature = 'command:name'; protected $signature = 'services:supplychain';
/** /**
* The console command description. * The console command description.
* *
* @var string * @var string
*/ */
protected $description = 'Command description'; protected $description = 'Checks and ends any supply chain contracts needs to be closed.';
/** /**
* Create a new command instance. * Create a new command instance.
@@ -7,11 +7,37 @@ use Illuminate\Queue\SerializesModels;
use Illuminate\Queue\InteractsWithQueue; use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable; use Illuminate\Foundation\Bus\Dispatchable;
use Carbon\Carbon;
use Log;
//Library
use App\Library\Lookups\LookupHelper;
//Models
use App\Models\Contracts\SupplyChainBid;
use App\Models\Contracts\SupplyChainContract;
//Jobs
use App\Jobs\ProcessSendEveMailJob;
class EndSupplyChainContractJob implements ShouldQueue class EndSupplyChainContractJob implements ShouldQueue
{ {
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels; use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
/**
* Timeout in seconds
*
* @var int
*/
public $timeout = 1200;
/**
* Retries
*
* @var int
*/
public $retries = 3;
/** /**
* Create a new job instance. * Create a new job instance.
* *
@@ -19,7 +45,8 @@ class EndSupplyChainContractJob implements ShouldQueue
*/ */
public function __construct() public function __construct()
{ {
// //Set the queue connection up
$this->connection = 'redis';
} }
/** /**
@@ -29,6 +56,7 @@ class EndSupplyChainContractJob implements ShouldQueue
*/ */
public function handle() public function handle()
{ {
// //Declare variables
} }
} }
@@ -15,7 +15,7 @@
</div> </div>
<div class="form-group"> <div class="form-group">
{{ Form::label('allowedEntityType', 'Allowed Entity Type') }} {{ Form::label('allowedEntityType', 'Allowed Entity Type') }}
{{ Form::select('allowedEtntityType', ['Corporation' => 'Corporation', 'Alliance' => 'Alliance'], null, ['class' => 'form-control']) }} {{ Form::select('allowedEntityType', ['Corporation' => 'Corporation', 'Alliance' => 'Alliance'], null, ['class' => 'form-control']) }}
</div> </div>
<div class="form-group"> <div class="form-group">
{{ Form::label('allowedEntityName', 'Allowed Entity Name') }} {{ Form::label('allowedEntityName', 'Allowed Entity Name') }}