Skip to content

How to validate mongoDB id? #2447

@MunirBash

Description

@MunirBash

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions