Learn how to test your Spark Stripe application.
$billable->subscribed()
method return true
.
To accomplish this, you may add a “state” method to your billable model’s factory class. Typically, this will be your application’s UserFactory
class. Below you will find an example state method implementation; however, you are free to adjust this to your application’s own needs: