SendEmails.php 972 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <?php
  2. namespace App\Console\Commands;
  3. use App\DripEmailer;
  4. use Illuminate\Console\Command;
  5. class SendEmails extends Command
  6. {
  7. /**
  8. * The name and signature of the console command.
  9. *
  10. * @var string
  11. */
  12. protected $signature = 'email:send {user}';
  13. /**
  14. * The console command description.
  15. *
  16. * @var string
  17. */
  18. protected $description = 'Send drip e-mails to a user';
  19. /**
  20. * The drip e-mail service.
  21. *
  22. * @var DripEmailer
  23. */
  24. protected $drip;
  25. /**
  26. * Create a new command instance.
  27. *
  28. * @param DripEmailer $drip
  29. * @return void
  30. */
  31. public function __construct(DripEmailer $drip)
  32. {
  33. parent::__construct();
  34. $this->drip = $drip;
  35. }
  36. /**
  37. * Execute the console command.
  38. *
  39. * @return mixed
  40. */
  41. public function handle()
  42. {
  43. v('handlestart');
  44. // $this->drip->send(User::find($this->argument('user')));
  45. }
  46. }