We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 56ba943 commit 1185e8aCopy full SHA for 1185e8a
CHANGELOG.md
@@ -2,6 +2,10 @@
2
3
All notable changes to `laravel-balance` will be documented in this file
4
5
+## 1.2.0 - 2021-05-26
6
+
7
+- Changed name of reference to referenceable method to avoid null properties when eager loading
8
9
## 1.1.1 - 2021-05-26
10
11
- Fixed reference polymorphic relationship.
src/Balance.php
@@ -55,8 +55,8 @@ public function balanceable()
55
*
56
* @return \Illuminate\Database\Eloquent\Relations\MorphTo
57
*/
58
- public function reference()
+ public function referenceable()
59
{
60
- return $this->morphTo('referenceable');
+ return $this->morphTo();
61
}
62
0 commit comments