PayOrderAddCreditsJob.php 463 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. namespace App\Jobs;
  3. use Illuminate\Support\Facades\DB;
  4. use Illuminate\Support\Facades\Log;
  5. class PayOrderAddCreditsJob extends Job
  6. {
  7. protected $data;
  8. /**
  9. * Create a new job instance.
  10. *
  11. * @return void
  12. */
  13. public function __construct($data)
  14. {
  15. $this->data = $data;
  16. }
  17. /**
  18. * Execute the job.
  19. *
  20. * @return void
  21. */
  22. public function handle()
  23. {
  24. Log::info($this->data);
  25. }
  26. }