Skip to content

Upgrading from v5 to v6 #2532

Closed Answered by FaisalBudiono
FaisalBudiono asked this question in Q&A
Discussion options

You must be logged in to vote

Found the issue, I don't think there are any changes in the tables themselves. I found error on my test suite because the old migration using PermissionRegistrar to get pivotRole and pivotPermission field from the config.

To solve the issue, just remove the PermissionRegistrar and call the pivotRole or pivotPermission directly just like in

$pivotRole = $columnNames['role_pivot_key'] ?? 'role_id';
$pivotPermission = $columnNames['permission_pivot_key'] ?? 'permission_id';

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@drbyte
Comment options

@FaisalBudiono
Comment options

@drbyte
Comment options

Answer selected by FaisalBudiono
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants