Ejemplo n.º 1
0
 /**
  * {@inheritdoc}
  */
 public function handle(array $data)
 {
     if (!Spark::hasSupportAddress()) {
         throw new RuntimeException("No customer support request recipient is defined.");
     }
     Mail::raw($data['message'], function ($m) use($data) {
         $m->to(Spark::supportAddress())->subject('Support Request: ' . $data['subject']);
         $m->replyTo($data['from']);
     });
 }