/**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     EmailEvent::truncate();
     EmailQueue::truncate();
     $this->repository->create(['code' => 'user_request_password', 'name' => 'Запрос на восстановление пароля', 'fields' => ['code' => 'Код восстановления пароля', 'username' => 'Имя пользователя', 'email' => 'Email пользователя', 'reflink' => 'Ссылка для восстановления пароля']]);
     $this->repository->create(['code' => 'user_new_password', 'name' => 'Новый пароль', 'fields' => ['password' => 'Новый пароль', 'email' => 'Email пользователя', 'username' => 'Имя пользователя']]);
 }
 /**
  * Execute the console command.
  */
 public function fire()
 {
     EmailQueue::sendAll();
     $this->info('All done');
 }
Ejemplo n.º 3
0
 /**
  * @param array $options
  *
  * @return static
  */
 public function addToQueue(array $options = [])
 {
     return EmailQueue::addEmailTemplate($this, $options);
 }
 /**
  * Execute the console command.
  */
 public function fire()
 {
     EmailQueue::cleanOld();
     $this->info('All done');
 }