Replies: 1 comment
-
@MunirBash There is no need to use ObjectID to verify that the ID is valid,You can use validation rules like alpha|size:24 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Im trying to validate the mongoDB id (coming in from API request) but I cant find a function from this library to do the ID validation.
I tried using this https://www.php.net/manual/en/mongodb-bson-objectid.tostring.php but latest Laravel Sails doesnt seem to have this extension.
Beta Was this translation helpful? Give feedback.
All reactions