Skip to content

Conversation

@danieleisenhardt
Copy link

Laravel's [8.x] Attribute Cast / Accessor Improvements uses HasAttributes::getAttributeMarkedMutatorMethods($class) when calling attributesToArray() which tries to construct a new instance of the class without providing constructor arguments.

laravel-menu's MenuItem has mandatory constructor arguments.

Therefore I have created MenuItem::attributesToArray() which does not call that function.

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

Successfully merging this pull request may close these issues.

1 participant