From d28350c5bdb1f0117542ca3859d18dba391ee86f Mon Sep 17 00:00:00 2001 From: zayedadel Date: Sat, 19 Oct 2024 14:49:10 +0300 Subject: [PATCH 1/3] Add per-table namespace configuration support --- src/Coders/Model/Config.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Coders/Model/Config.php b/src/Coders/Model/Config.php index 6506d5fa..9fa7bc1b 100644 --- a/src/Coders/Model/Config.php +++ b/src/Coders/Model/Config.php @@ -41,6 +41,7 @@ public function get(Blueprint $blueprint, $key, $default = null) "@connections.{$blueprint->connection()}.{$blueprint->schema()}.$key", "@connections.{$blueprint->connection()}.$key", "{$blueprint->qualifiedTable()}.$key", + "{$blueprint->table()}.$key", // <-- Added this line "{$blueprint->schema()}.$key", "*.$key", ]; From 0f5decd62b5b9613326627055093be0311f6c3bb Mon Sep 17 00:00:00 2001 From: zayedadel Date: Sat, 19 Oct 2024 17:39:36 +0300 Subject: [PATCH 2/3] Update Config.php --- src/Coders/Model/Config.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Coders/Model/Config.php b/src/Coders/Model/Config.php index 9fa7bc1b..70160607 100644 --- a/src/Coders/Model/Config.php +++ b/src/Coders/Model/Config.php @@ -41,7 +41,7 @@ public function get(Blueprint $blueprint, $key, $default = null) "@connections.{$blueprint->connection()}.{$blueprint->schema()}.$key", "@connections.{$blueprint->connection()}.$key", "{$blueprint->qualifiedTable()}.$key", - "{$blueprint->table()}.$key", // <-- Added this line + "{$blueprint->table()}.$key", "{$blueprint->schema()}.$key", "*.$key", ]; From ecaf651a4feb2c6c294119d613e340e12a5e3946 Mon Sep 17 00:00:00 2001 From: zayedadel Date: Sat, 19 Oct 2024 20:14:11 +0300 Subject: [PATCH 3/3] Update Config.php --- src/Coders/Model/Config.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Coders/Model/Config.php b/src/Coders/Model/Config.php index 70160607..97d19a18 100644 --- a/src/Coders/Model/Config.php +++ b/src/Coders/Model/Config.php @@ -41,7 +41,7 @@ public function get(Blueprint $blueprint, $key, $default = null) "@connections.{$blueprint->connection()}.{$blueprint->schema()}.$key", "@connections.{$blueprint->connection()}.$key", "{$blueprint->qualifiedTable()}.$key", - "{$blueprint->table()}.$key", + "*.models.{$blueprint->table()}.$key", "{$blueprint->schema()}.$key", "*.$key", ];