When using UUID for User ID, can't delete permissions. #2365
-
PHP: 8.2.0 My users table use UUID for primary key. Followed the instructions here to here to adapt the package so that roles and permissions worked with it. I'm only changing the "model_morph_key" to UUID, primary keys of tables created by the package are left as is. When I try to delete a permission, the application is trying to do the following query: This results in an error because the permission_id (1 in the query) is not a valid uuid. I'm not sure if I did something wrong but I don't see why the package would try to query the Edit: This problem doesn't happen when trying to delete a role, which has pretty much the same database/migration structure. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi @GabrielGS447, i make a PR #2366 to fix this, please review it |
Beta Was this translation helpful? Give feedback.
Hi @GabrielGS447, i make a PR #2366 to fix this, please review it