Skip to content

Commit

Permalink
Removed now redundant logic check in the getAttribute method.
Browse files Browse the repository at this point in the history
  • Loading branch information
kirkbushell committed Aug 26, 2023
1 parent d7c5ffb commit 15b8852
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/Behaviours/CamelCasing.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,6 @@ public function setAttribute($key, $value)
*/
public function getAttribute($key)
{
if (method_exists($this, $key)) {
return $this->getRelationValue($key);
}

return parent::getAttribute($this->getSnakeKey($key));
}

Expand Down

0 comments on commit 15b8852

Please sign in to comment.