oddvalue / laravel-drafts

MIT License
390 stars 18 forks source link

Added getDraftableAttributes method #22

Closed SergkeiM closed 1 year ago

SergkeiM commented 1 year ago

This adds possibility to override what attributes are taken before publishing the drafted Model

issue: #17

@oddvalue Please review, becuase I don't much like the getDraftableRelations changes, if you have better idea about it.

oddvalue commented 1 year ago

Thanks @Froxz I don't much like the changes in getDraftableRelations either but I couldn't think of a better way to make it happen and it makes sense for it to function that way so have merged.