diff --git a/app/Models/User.php b/app/Models/User.php index f04cedbe109d3ccac800d99677775656b5945d43..444211ede33e09563874bcb59d6a6434a99645ee 100644 --- a/app/Models/User.php +++ b/app/Models/User.php @@ -121,6 +121,13 @@ class User extends Authenticatable return $this->type === self::TYPE_COORDINATOR; } + /** + * @return string + */ + public function attributeName(string $attribute) { + return $this->getTable() . '-' . $attribute; + } + /** * @return string */