Пример #1
0
 /**
  * Handle the event.
  *
  * @param  UserCreateEvent  $event
  * @return void
  */
 public function handle(UserCreateEvent $event)
 {
     $user = $event->getUser();
     \Mail::send('sdf', [], function ($message) use($input, $user) {
         $message->to($user->email, $user->name)->subject('Welcome!');
     });
 }
 /**
  * Handle the event.
  *
  * @param  UserCreateEvent  $event
  * @return void
  */
 public function handle(UserCreateEvent $event)
 {
     $this->seedCategories($event->getUser());
     $this->seedTasks($event->getUser());
 }