Skip to content

Conversation

@itashia
Copy link

@itashia itashia commented May 26, 2025

Summary of Improvements

  • Added precise return types for roles() and boot method
  • Renamed boot() to bootEntrustPermissionTrait() to prevent trait conflicts
  • Replaced sync([]) with detach() for better clarity and intent
  • Removed redundant return true from model event listener
  • Cleaned up formatting and long lines
  • Explicitly imported BelongsToMany for better readability

All changes are non-breaking and maintain the original behavior.

Improve type hinting, naming, and readability:

- Added return types: BelongsToMany for roles(), void for boot method
- Renamed boot() to bootEntrustPermissionTrait to avoid trait conflicts
- Replaced sync([]) with detach() for clarity
- Removed unnecessary return true in event listener
- Added import for BelongsToMany
- Improved formatting and line breaks
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