Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue With Uuid Model ID #139

Open
reasecret opened this issue Jun 22, 2023 · 1 comment
Open

Issue With Uuid Model ID #139

reasecret opened this issue Jun 22, 2023 · 1 comment

Comments

@reasecret
Copy link

reasecret commented Jun 22, 2023

I'm using uuid for my model's id column and taggable_id column type is BIGINT. There is a conflict with column types.

Maybe this option can be change on "taggable.php" config file like this:

'uuid' => true,

And this config could be check on migration file:

if (config('taggable.uuid')) {
     $table->uuidMorphs('taggable');
} else {
     $table->morphs('taggable');
}

This is just a suggestion.

@cviebrock
Copy link
Owner

Good idea @reasecret ! If you want to put together a PR for this feature, I'd be happy to add it quickly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants