public function cancelSubscription()
    {
        Auth::user()->subscription()->cancelAtEndOfPeriod();

        event(new SubscriptionCancelled(Auth::user()));

        return $this->users->getCurrentUser();
    }
public function cancelSubscription()
    {
        Auth::user()->subscription()->cancelAtEndOfPeriod();

        event(new SubscriptionCancelled(Auth::user()));

        return $this->users->getCurrentUser();
    }
public function cancelSubscription ( ) { Auth :: user ( ) -> subscription ( ) -> cancelAtEndOfPeriod ( ) ; event ( new SubscriptionCancelled ( Auth :: user ( ) ) ) ; return $ this -> users -> getCurrentUser ( ) ; }
Cancel the user's subscription.

@return \Illuminate\Http\Response
Cancel the user s subscription .