Oct 12, 2021
0
Level 1
[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.
Please or to participate in this conversation.