/**
  * Handle the event.
  *
  * @param  UserApplicationWasApproved  $event
  * @return void
  */
 public function handle(UserApplicationWasApproved $event)
 {
     //
     $user = $event->app;
     event(new NewUserAccountCreated($user));
     Application::where('id', $event->app->id)->delete();
 }
Esempio n. 2
0
 /**
  * Handle the event.
  *
  * @param  UserApplicationWasDenied $event
  * @internal param Application $app
  */
 public function handle(UserApplicationWasDenied $event)
 {
     Application::where('id', $event->app->id)->delete();
 }