Skip to content

Commit aad5cc4

Browse files
author
Tihomir Banov
committed
Add translator model name getter
1 parent dee9466 commit aad5cc4

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/Despark/LaravelDbLocalization/i18nModelTrait.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,16 @@ public function translations()
2121
return $this->hasMany($this->translator);
2222
}
2323

24+
/**
25+
* Get translator model name.
26+
*
27+
* @return mixed
28+
*/
29+
public function getTranslator()
30+
{
31+
return $this->translator;
32+
}
33+
2434
/**
2535
* Get translator field value.
2636
*

0 commit comments

Comments
 (0)