New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Model Traits #113
Labels
enhancement
New feature or request
Comments
An issue with this is the developer may create an extending model which would then return the incorrect model. I.e.
The developer would be required to override the traits to change the subclass returned. |
Is this solved by PHP8.1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is your feature request related to a problem? Please describe.
To get the post featured image requires adding boilerplate methods that could be used as a trait
Describe the solution you'd like
A trait for things such as the post featured image and author.
HasFeaturedImage
Describe alternatives you've considered
Adding the methods to the base class
Additional context
Perhaps a trait for
HasAuthor
,HasFeaturedImage
,HasAttachment
etc.The text was updated successfully, but these errors were encountered: