diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index f580b8e..2b9ce5c 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -14,10 +14,12 @@ jobs: fail-fast: true matrix: php: ['8.0', 8.1, 8.2, 8.3] - laravel: [8, 9, 10] + laravel: [8, 9, 10, 11] exclude: - php: 8.0 laravel: 10 + - php: 8.1 + laravel: 11 name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }} diff --git a/composer.json b/composer.json index 78055d6..c2bd895 100644 --- a/composer.json +++ b/composer.json @@ -19,10 +19,10 @@ "require": { "php": "^8.0", "guzzlehttp/guzzle": "^6.5.5|^7.0.1", - "illuminate/http": "^8.0|^9.0|^10.0", - "illuminate/support": "^8.0|^9.0|^10.0", - "illuminate/validation": "^8.0|^9.0|^10.0", - "illuminate/view": "^8.0|^9.0|^10.0" + "illuminate/http": "^8.0|^9.0|^10.0|^11.0", + "illuminate/support": "^8.0|^9.0|^10.0|^11.0", + "illuminate/validation": "^8.0|^9.0|^10.0|^11.0", + "illuminate/view": "^8.0|^9.0|^10.0|^11.0" }, "require-dev": { "laravel/pint": "^1.5.0", diff --git a/src/CaptchaServiceProvider.php b/src/CaptchaServiceProvider.php index 34e95f4..badb26d 100644 --- a/src/CaptchaServiceProvider.php +++ b/src/CaptchaServiceProvider.php @@ -17,7 +17,9 @@ class CaptchaServiceProvider extends ServiceProvider { public function register(): void { - $this->mergeConfigFrom(__DIR__.'/../config/captcha.php', 'captcha'); + if(! app()->configurationIsCached()) { + $this->mergeConfigFrom(__DIR__.'/../config/captcha.php', 'captcha'); + } $this->app->singleton(CaptchaContract::class, fn ($app): CaptchaManager => new CaptchaManager($app));