Skip to content
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

HasAttachment trait return Attachment model instead of extended #29

Closed
MWStudio4 opened this issue Oct 7, 2019 · 0 comments
Closed

Comments

@MWStudio4
Copy link

MWStudio4 commented Oct 7, 2019

I've got extended model FileAttachment to add some relations. But when i use HasAttachment trait, i've got collection of Attachment models instead of FileAttachment.
In AppServiceProvider all bindings correct.
May be it would be nice to have model class name in config/attachments.php that we could have own model class in HasAttachment trait?

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

No branches or pull requests

1 participant