/**
  * Handle the event.
  *
  * @param  TeamCreated  $event
  * @return void
  */
 public function handle(TeamCreated $event)
 {
     if (!Spark::teamTrialDays()) {
         return;
     }
     $this->notifications->create($event->team->owner, ['icon' => 'fa-clock-o', 'body' => "The " . $event->team->name . " team's trial period will expire on " . $event->team->trial_ends_at->format('F jS') . '.', 'action_text' => 'Subscribe', 'action_url' => '/settings/teams/' . $event->team->id . '#/subscription']);
 }
 /**
  * {@inheritdoc}
  */
 public function create($user, array $data)
 {
     return Spark::team()->forceCreate(['owner_id' => $user->id, 'name' => $data['name'], 'trial_ends_at' => Carbon::now()->addDays(Spark::teamTrialDays())]);
 }