We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 53b47ad commit d927810Copy full SHA for d927810
src/Illuminate/Database/DatabaseManager.php
@@ -7,6 +7,7 @@
7
use Illuminate\Support\Arr;
8
use Illuminate\Support\ConfigurationUrlParser;
9
use Illuminate\Support\Str;
10
+use Illuminate\Support\Traits\Macroable;
11
use InvalidArgumentException;
12
use PDO;
13
use RuntimeException;
@@ -16,6 +17,10 @@
16
17
*/
18
class DatabaseManager implements ConnectionResolverInterface
19
{
20
+ use Macroable {
21
+ __call as macroCall;
22
+ }
23
+
24
/**
25
* The application instance.
26
*
@@ -450,6 +455,10 @@ public function setApplication($app)
450
455
451
456
public function __call($method, $parameters)
452
457
458
+ if (static::hasMacro($method)) {
459
+ return $this->macroCall($method, $parameters);
460
461
453
462
return $this->connection()->$method(...$parameters);
454
463
}
464
0 commit comments