Change User model to extend Base Model
Add namespace to  belongsTo method
Add Query Scope to byUser method