michaeldyrynda / laravel-model-uuid

This package allows you to easily work with UUIDs in your Laravel models
MIT License
442 stars 46 forks source link

Validation for UUIDs passed to the `whereUuid` scope #115

Closed MrThePlague closed 2 years ago

MrThePlague commented 2 years ago

This PR proposes a simple change to fix #114, and works for either a model using EfficientUuid or using PostgreSQL's native UUID data type.

Note: I didn't update the GitHub Actions workflow to also run the test suite against a PostgreSQL too, but I'm happy to append the PR with that change if you'd like that added.