diff --git a/.github/workflows/tests-php8.yml b/.github/workflows/tests-php8.yml index b55f296..94dc602 100644 --- a/.github/workflows/tests-php8.yml +++ b/.github/workflows/tests-php8.yml @@ -17,8 +17,8 @@ jobs: strategy: matrix: - laravel: ['9.*'] - php: [8.0, 8.1] + laravel: ['10.*'] + php: [8.1, 8.2] fail-fast: false name: Laravel ${{ matrix.laravel }}, PHP ${{ matrix.php }} diff --git a/README.md b/README.md index 51382ad..cc9c736 100644 --- a/README.md +++ b/README.md @@ -48,12 +48,10 @@ $ composer require suarez/laravel-utm-parameter ### Middleware -#### Laravel 8 - Open the `app/Http/Kernel.php` file and add a new item to the `web` middleware group: ```php -# Laravel 9 +# Laravel 10 protected $middlewareGroups = [ 'web' => [ /* ... keep the existing middleware here */ @@ -65,8 +63,8 @@ protected $middlewareGroups = [ To enable UTM-Parameters only for certain requests to your site, add a new mapping to the `routeMiddleware` Array. ```php -# Laravel 9 -protected $routeMiddleware = [ +# Laravel 10 +protected $middlewareAliases = [ /* ... keep the existing mappings here */ 'utm-parameters' => \Suarez\UtmParameter\Middleware\UtmParameters::class, ]; diff --git a/composer.json b/composer.json index 570fec8..8646d87 100644 --- a/composer.json +++ b/composer.json @@ -11,14 +11,14 @@ } ], "require": { - "php": "^8.0.2", - "illuminate/support": "^9.0", - "illuminate/contracts": "^9.0" + "php": "^8.1", + "illuminate/support": "^10.0", + "illuminate/contracts": "^10.0" }, "require-dev": { - "nunomaduro/collision": "^6.0", - "orchestra/testbench": "^7.0", - "phpunit/phpunit": "^9.5", + "nunomaduro/collision": "^7.0", + "orchestra/testbench": "^8.0", + "phpunit/phpunit": "^9.5|^10.0", "friendsofphp/php-cs-fixer": "^3.0" }, "autoload": {