By request: what's my workflow for writing books? Steps, tools, etc.
When to use a trait? Never.
Well, a trait could be considered to have a few benefits:
This article shows an example of framework decoupling. You'll find a more elaborate discussion in my latest book, Recipes for Decoupling.
Why would it be nice to decouple your user model from the framework's security user or authentication model?