12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- <?php
- namespace App\Console\Commands;
- use App\DripEmailer;
- use Illuminate\Console\Command;
- class SendEmails extends Command
- {
- /**
- * The name and signature of the console command.
- *
- * @var string
- */
- protected $signature = 'email:send {user}';
- /**
- * The console command description.
- *
- * @var string
- */
- protected $description = 'Send drip e-mails to a user';
- /**
- * The drip e-mail service.
- *
- * @var DripEmailer
- */
- protected $drip;
- /**
- * Create a new command instance.
- *
- * @param DripEmailer $drip
- * @return void
- */
- public function __construct(DripEmailer $drip)
- {
- parent::__construct();
- $this->drip = $drip;
- }
- /**
- * Execute the console command.
- *
- * @return mixed
- */
- public function handle()
- {
- v('handlestart');
- // $this->drip->send(User::find($this->argument('user')));
- }
- }
|