belongsTo('App\Owner','owner_id','id'); } public function getOwnerNameAttribute() { $this['owner']? $this['owner']['name']:null; } }