adminarchitect / core

AdminArchitect - Active Admin for Laravel
http://adminarchitect.com
MIT License
211 stars 66 forks source link

Usage Translateble and StaplerableInterface together #25

Closed YulKard closed 6 years ago

YulKard commented 6 years ago

Hello! I have a problem with using HasTranslations and EloquentTrait in my model. I have problem with methods getAttribute and setAttribute, so I redefined them: http://joxi.ru/krDDZDZSEb8okr But I have error with image, when I save a data http://joxi.ru/l2Z6a6auwxpG92. When I removed HasTranslations and Translatable, image successfully saved. Plaese, tell me what iam doing wrong. Trank you for advance.

endihunter commented 6 years ago

Hello, to solve methods collision between Translatable & Stapler packages, try this workaround: https://gist.github.com/endihunter/ab1c83f5108465c5cf71ff810629007b

YulKard commented 6 years ago

Thank you. I will try.