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.