diff --git a/src/BaseEnum.php b/src/BaseEnum.php index 40a9902..a6e673f 100644 --- a/src/BaseEnum.php +++ b/src/BaseEnum.php @@ -285,7 +285,7 @@ abstract class BaseEnum implements JsonSerializable, UrlRoutable */ public function getRouteKey() { - throw new NotImplementedException('getRouteKey not implemented, should not be used'); + return $this->value; } /**