12345678910111213141516171819202122232425262728293031323334353637 |
- <?php
- namespace App\Jobs;
- use App\Models\BlockItems;
- use App\Servers\ContractServer;
- use Illuminate\Bus\Queueable;
- use Illuminate\Queue\SerializesModels;
- use Illuminate\Queue\InteractsWithQueue;
- use Illuminate\Contracts\Queue\ShouldQueue;
- use Illuminate\Foundation\Bus\Dispatchable;
- class BoadcastDetectionJob implements ShouldQueue
- {
- use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
- private $blockItem;
- /**
- * Create a new job instance.
- *
- * @return void
- */
- public function __construct(BlockItems $blockItem)
- {
- $this->blockItem=$blockItem;
- }
- /**
- * Execute the job.
- *
- * @return void
- */
- public function handle()
- {
- ContractServer::creatServer()->broadcastDetection();
- }
- }
|