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

MiloHP's avatar

[Laravel Cashier+stripe] Query scope for users latest subscription

I am trying to create a Nova filter that will allow me to view users whose subscription is currently cancelled.

I am running into issues creating the filter as I can't see a way to query against only the users latest/current subscription. The scopes Cashier provides consider all of a users past subscriptions. Is there any way to scope queries against only the latest subscription?

For example a user who cancelled their subscription and then resubscribed will be returned when querying for users using the cancelled scope.

0 likes
0 replies

Please or to participate in this conversation.