Skip to content

Commit

Permalink
added laravel 11 support
Browse files Browse the repository at this point in the history
  • Loading branch information
RahulDey12 committed Mar 30, 2024
1 parent b3e0f1c commit 979ed14
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

Expand Down
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 3 additions & 1 deletion src/CaptchaServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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));

Expand Down

0 comments on commit 979ed14

Please sign in to comment.