Skip to content

Commit 42d7c9b

Browse files
committed
Passes connection to bp resolver
1 parent 9b4ad93 commit 42d7c9b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

composer.json

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
"laravel/tinker": "~2.0"
2727
},
2828
"require-dev": {
29+
"laravel/framework": "^12.0",
2930
"phpunit/phpunit": "^8.0|^9.0|^10.0",
3031
"meyfa/phpunit-assert-gd": "^2.0.0|^3.0.0",
3132
"phpbench/phpbench": "^1.2"

src/Database/DatabaseServiceProvider.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ protected function registerConnectionServices()
6060
$builder = $app['db']->connection()->getSchemaBuilder();
6161

6262
// Custom blueprint resolver for schema
63-
$builder->blueprintResolver(function ($table, $callback) {
64-
return new Blueprint($table, $callback);
63+
$builder->blueprintResolver(function ($connection, $table, $callback) {
64+
return new Blueprint($connection, $table, $callback);
6565
});
6666

6767
return $builder;

0 commit comments

Comments
 (0)