diff --git a/src/Generator/ActiveRecord/Command.php b/src/Generator/ActiveRecord/Command.php index 93d6d3ec..0c48c675 100644 --- a/src/Generator/ActiveRecord/Command.php +++ b/src/Generator/ActiveRecord/Command.php @@ -24,7 +24,7 @@ public function __construct( private readonly string $namespace = 'App\\Model', #[Required] #[Regex( - pattern: '/^[\w-]+\.?[\w-]*$/i', + pattern: '/^[\w\-.]+$/i', message: 'Invalid table name' )] #[TableExistsRule]