Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

richard@gorbutt.com's avatar

Spark - Trial Ends - Am I expected to handle...

In testing my new app using Spark, I have test account that was on a free trial (no credit card upfront) and even though the trial has now ended the account still has full Auth access to the site.

Am I expected to handle the expiry and send them to the subscription page?

Thanks

0 likes
6 replies
richard@gorbutt.com's avatar

and late night digging, there is middleware commented out in my controllers!

    public function __construct()
    {
        $this->middleware('auth');

        $this->middleware('subscribed');
    }

and it works as on the tin. Wish it was clearer in the docs.. :-)

1 like
Cronix's avatar

You have to be subscribed to the spark repo to see it since it's private. Glad you got it working.

You can get access by logging into spark.laravel.com, going to your settings and clicking on the github settings page.

clat23's avatar

@Gorby

I uncommented $this->middleware('subscribed'); from my controller and while yes it redirects users no longer on trial to subscription page, but it also redirects a new user that's still on trial. Any insight on this?

UPDATE: I'm using teams so I should have been using $this->middleware('teamSubscribed');

All working as expected now :)

2 likes
FoxRocks's avatar

Thanks pal! That was a big help for my issue :)

Please or to participate in this conversation.