-
Notifications
You must be signed in to change notification settings - Fork 11.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loading status checks…
fix(model): ensure accurate detection and addition of traits in User …
…model - Refactored `addTraitToModel` function to properly check for top-level `use` imports and class-level trait usage. - Prevented redundant additions of the trait in both top-level and class-level blocks. - Improved logic to handle cases where the trait is missing in either block and correctly adds it. - Ensured compatibility with Laravel conventions and better error handling for edge cases.
1 parent
1a1b896
commit 66ef6c1
Showing
1 changed file
with
44 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters