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

Query Builder! #92

Closed boranbar closed 3 years ago

boranbar commented 4 years ago

Hello,

I'm using this package with https://github.com/michaeldyrynda/laravel-efficient-uuid

So, in the docs you say:

// Find a specific post with the default (uuid) column name $post = Post::whereUuid($uuid)->first();

If i want to retrieve a data with DB::table it returns null.

For storing data or retrieve data, is there a way to use with DB Facade also?

michaeldyrynda commented 3 years ago

There is no integration with the query builder, as this package is built to support UUID with Eloquent. I would consider a PR to add the functionality to the package.