Skip to content

Fix typo: change usage() to usages() in Feature model deleted hook#48

Open
aungkhantzaw777 wants to merge 1 commit into
laravelcm:mainfrom
aungkhantzaw777:fix/feature-model-usages-typo
Open

Fix typo: change usage() to usages() in Feature model deleted hook#48
aungkhantzaw777 wants to merge 1 commit into
laravelcm:mainfrom
aungkhantzaw777:fix/feature-model-usages-typo

Conversation

@aungkhantzaw777

Copy link
Copy Markdown

In Feature::boot(), the deleted model event calls $feature->usage()->delete() but the relation defined in the model is usages() (plural). This PR fixes the typo to prevent runtime crashes when deleting a Feature.

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