diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d3058c3..9a29002 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -13,19 +13,12 @@ jobs: fail-fast: true matrix: os: [ubuntu-latest] - php: [8.4, 8.3, 8.2, 8.1] - laravel: [11.*, 10.*, 9.*] + php: [8.4, 8.3, 8.2] + laravel: [12.*] stability: [prefer-lowest, prefer-stable] include: - - laravel: 11.* - testbench: 9.* - - laravel: 10.* - testbench: 8.* - - laravel: 9.* - testbench: 7.* - exclude: - - laravel: 11.* - php: 8.1 + - laravel: 12.* + testbench: 10.* name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }} @@ -56,7 +49,7 @@ jobs: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" - name: Install dependencies run: | - composer require "laravel/framework:${{ matrix.laravel }}" "nesbot/carbon:^2.64" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update + composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update composer update --${{ matrix.stability }} --prefer-dist --no-interaction - name: Execute tests run: vendor/bin/phpunit diff --git a/composer.json b/composer.json index e8d1466..9bab35e 100644 --- a/composer.json +++ b/composer.json @@ -18,14 +18,14 @@ } ], "require": { - "php": "^8.1", - "illuminate/support": "^9.0|^10.0|^11.0", - "illuminate/database": "^9.0|^10.0|^11.0" + "php": "^8.2", + "illuminate/support": "^12.0", + "illuminate/database": "^12.0" }, "require-dev": { "friendsofphp/php-cs-fixer": "^3.5", - "orchestra/testbench": "^7.0|^8.0|^9.0", - "phpunit/phpunit": "^9.0|^10.0" + "orchestra/testbench": "^10.0", + "phpunit/phpunit": "^11.0" }, "autoload": { "psr-4": { diff --git a/src/Facades/Schema.php b/src/Facades/Schema.php index 4b4d011..0c9904d 100644 --- a/src/Facades/Schema.php +++ b/src/Facades/Schema.php @@ -21,7 +21,7 @@ public static function connection($name): Builder public static function getSchemaBuilder(Connection $connection): Builder { $getSchemaBuilderForGrammar = function (string $grammarClass, string $builderClass) use ($connection): Builder { - $connection->setSchemaGrammar($connection->withTablePrefix(new $grammarClass())); + $connection->setSchemaGrammar(new $grammarClass($connection)); return new $builderClass($connection); };