Commit 32e10e2a authored by alissonalbuquerque's avatar alissonalbuquerque
Browse files

add attributeName function

parent 062d3d34
...@@ -121,6 +121,13 @@ class User extends Authenticatable ...@@ -121,6 +121,13 @@ class User extends Authenticatable
return $this->type === self::TYPE_COORDINATOR; return $this->type === self::TYPE_COORDINATOR;
} }
/**
* @return string
*/
public function attributeName(string $attribute) {
return $this->getTable() . '-' . $attribute;
}
/** /**
* @return string * @return string
*/ */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment