/** * 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(); }
/** * Handle the event. * * @param UserApplicationWasDenied $event * @internal param Application $app */ public function handle(UserApplicationWasDenied $event) { Application::where('id', $event->app->id)->delete(); }