belongsTo('Bank', 'bankID'); } public function getBankNumberAsteriskAttr($value, $data) { return Common::bankNumberAsterisk($data['bankNumber']); } }