Used getRelation and setRelation in getAttribute

This allows developers more control over eloquent. It doesn't change a thing but allows devs to handle eloquent relations instantiators in a more controlled manner
Merge pull request #2009 from kapv89/patch-6

Used getRelation and setRelation in getAttribute