ImportOrderJob.php 636 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. namespace App\Jobs\Dwbs;
  3. use Illuminate\Bus\Queueable;
  4. use Illuminate\Contracts\Queue\ShouldQueue;
  5. use Illuminate\Queue\InteractsWithQueue;
  6. use Illuminate\Queue\SerializesModels;
  7. class ImportOrderJob implements ShouldQueue
  8. {
  9. use InteractsWithQueue, Queueable, SerializesModels;
  10. protected $data;
  11. /**
  12. * Create a new job instance.
  13. *
  14. * @return void
  15. */
  16. public function __construct($data)
  17. {
  18. $this->data=$data;
  19. $this->onConnection('database_zbs');
  20. }
  21. /**
  22. * Execute the job.
  23. *
  24. * @return void
  25. */
  26. public function handle()
  27. {
  28. //
  29. }
  30. }