ResumeExpires.php 859 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. namespace App\Jobs\Cron;
  3. use App\Models\Resume;
  4. use App\Services\Person\ResumeService;
  5. use Illuminate\Bus\Queueable;
  6. use Illuminate\Queue\SerializesModels;
  7. use Illuminate\Queue\InteractsWithQueue;
  8. use Illuminate\Contracts\Queue\ShouldQueue;
  9. use Illuminate\Foundation\Bus\Dispatchable;
  10. use Illuminate\Support\Facades\Log;
  11. class ResumeExpires implements ShouldQueue
  12. {
  13. use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
  14. const CREATE_LIST = 'create';
  15. const UPDATE_LIST = 'update';
  16. /**
  17. * Create a new job instance.
  18. *
  19. * @return void
  20. */
  21. public function __construct()
  22. {
  23. }
  24. /**
  25. * Execute the job.
  26. *
  27. * @return void
  28. */
  29. public function handle(ResumeService $resumeService)
  30. {
  31. $resume_id = $resumeService->clearResumeExpires();
  32. }
  33. }