diff --git a/src/Generator/ActiveRecord/Command.php b/src/Generator/ActiveRecord/Command.php index a8d0d37d..93d6d3ec 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-]+\.?[\w-]*$/i', message: 'Invalid table name' )] #[TableExistsRule]