Skip to content

Commit c645746

Browse files
committed
Fix order of redirector binding
1 parent a2eb439 commit c645746

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/FilamentFlexibleContentBlockPagesServiceProvider.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ public function packageBooted()
6161
$this->mergeConfigFrom(__DIR__.'/../config/'.$configName.'.php', $configName);
6262

6363
FilamentFlexibleContentBlocks::setLocales(LaravelLocalization::getSupportedLanguagesKeys());
64+
65+
// Override spatie/laravel-missing-page-redirector's redirector - this runs after all packages are registered
66+
$this->app->bind(Redirector::class, config('filament-flexible-content-block-pages.redirects.redirector'));
6467
}
6568

6669
public function packageRegistered()
@@ -74,9 +77,6 @@ function ($app) {
7477
}
7578
);
7679

77-
// set our custom redirector for spatie/laravel-missing-page-redirector
78-
$this->app->bind(Redirector::class, config('filament-flexible-content-block-pages.redirects.redirector'));
79-
8080
// register slug changed listener
8181
Event::listen(SlugChanged::class, SlugChangedListener::class);
8282
}

0 commit comments

Comments
 (0)