1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 12:24:04 +00:00

make MigrateFreshOverride compatible with Laravel 11.2

This commit is contained in:
Samuel Štancl 2024-04-02 20:19:15 +02:00
parent 1d80604cff
commit 711352db38
2 changed files with 3 additions and 3 deletions

View file

@ -26,7 +26,7 @@
"spatie/invade": "^1.1" "spatie/invade": "^1.1"
}, },
"require-dev": { "require-dev": {
"laravel/framework": "^10.1|^11.0", "laravel/framework": "^10.1|^11.2",
"orchestra/testbench": "^8.0|^9.0", "orchestra/testbench": "^8.0|^9.0",
"league/flysystem-aws-s3-v3": "^3.12.2", "league/flysystem-aws-s3-v3": "^3.12.2",
"doctrine/dbal": "^3.6.0", "doctrine/dbal": "^3.6.0",

View file

@ -95,8 +95,8 @@ class TenancyServiceProvider extends ServiceProvider
Commands\CreatePendingTenants::class, Commands\CreatePendingTenants::class,
]); ]);
$this->app->extend(FreshCommand::class, function () { $this->app->extend(FreshCommand::class, function ($_, $app) {
return new Commands\MigrateFreshOverride; return new Commands\MigrateFreshOverride($app['migrator']);
}); });
$this->publishes([ $this->publishes([