You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As of right now, there's no way to create a custom scope that both gets passed as is to the resolver and gets serialized as a string. Either the scope is one of the supported serializable types (string, number, Model) and gets passed as is to the resolver. Or it implements FeatureScopeable and is passed down as one of those types anyway.
FeatureScopeable is useful for mapping to special scopes based on drivers, but doesn't solve this issue. Maybe a solution would be for the serialize method to support Serializable types. Only solution right now as far as I know is a custom driver that augments scope serialization. #
Steps To Reproduce
As mentioned in the description
The text was updated successfully, but these errors were encountered:
Pennant Version
1.12.0
Laravel Version
12
PHP Version
8
Database Driver & Version
No response
Description
As of right now, there's no way to create a custom scope that both gets passed as is to the resolver and gets serialized as a string. Either the scope is one of the supported serializable types (string, number, Model) and gets passed as is to the resolver. Or it implements FeatureScopeable and is passed down as one of those types anyway.
FeatureScopeable is useful for mapping to special scopes based on drivers, but doesn't solve this issue. Maybe a solution would be for the serialize method to support Serializable types. Only solution right now as far as I know is a custom driver that augments scope serialization. #
Steps To Reproduce
As mentioned in the description
The text was updated successfully, but these errors were encountered: