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

Support for HasUuid #28

Open
cmwik opened this issue Apr 27, 2023 · 0 comments
Open

Support for HasUuid #28

cmwik opened this issue Apr 27, 2023 · 0 comments
Assignees

Comments

@cmwik
Copy link

cmwik commented Apr 27, 2023

I want to use UUID for my primary keys instead of an auto-incrementing ID. I created a migration and used $table->uuid();, and I can use the table fine using a standard Laravel model with use HasUuids;

However I can't use the CRUD generator on it: php artisan craftable-pro:generate-crud gives me "ERROR Following columns were not found in available selection: id."

Is there a way to tell the crud generator to use the uuid col for the primary key?

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

No branches or pull requests

2 participants