Closed jonspark closed 7 years ago
This adds 2 local scopes to save having to add where('uuid', $uuid). The scopes are withUuid and withUuids.
where('uuid', $uuid)
withUuid
withUuids
For example, this would allow you to use: FooModel::withUuid($my_uuid)->find();.
FooModel::withUuid($my_uuid)->find();
Sorry, I think this includes the Laravel version update from the other PR. I can rollback if needs be.
This adds 2 local scopes to save having to add
where('uuid', $uuid)
. The scopes arewithUuid
andwithUuids
.For example, this would allow you to use:
FooModel::withUuid($my_uuid)->find();
.Sorry, I think this includes the Laravel version update from the other PR. I can rollback if needs be.