emails.php 549 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. namespace App\Console\Commands;
  3. use Illuminate\Console\Command;
  4. use App\Jobs\EmailsJob;
  5. class emails extends Command
  6. {
  7. /**
  8. * The name and signature of the console command.
  9. *
  10. * @var string
  11. */
  12. protected $signature = 'app:emails';
  13. /**
  14. * The console command description.
  15. *
  16. * @var string
  17. */
  18. protected $description = 'To generate emails';
  19. /**
  20. * Execute the console command.
  21. */
  22. public function handle()
  23. {
  24. EmailsJob::dispatch()->onQueue('gpt-emails');
  25. }
  26. }