You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
640 B

  1. <?php
  2. namespace App\Console\Commands;
  3. use Illuminate\Console\Command;
  4. class SendEmail extends Command
  5. {
  6. /**
  7. * The name and signature of the console command.
  8. *
  9. * @var string
  10. */
  11. protected $signature = 'email:send {user}';
  12. /**
  13. * The console command description.
  14. *
  15. * @var string
  16. */
  17. protected $description = 'Send e-mail to a user';
  18. /**
  19. * Execute the console command.
  20. *
  21. * @return mixed
  22. */
  23. public function handle()
  24. {
  25. // 获取指定参数
  26. // $user_id = $this->argument('user');
  27. // 获取指定选项
  28. // $user_id = $this->option('user');
  29. }
  30. }