Skip to content

Commit 4a00ac9

Browse files
Merge pull request #2 from esign/feature/laravel-12
Support Laravel 12
2 parents 26020c2 + 65a9c9b commit 4a00ac9

File tree

3 files changed

+11
-18
lines changed

3 files changed

+11
-18
lines changed

.github/workflows/main.yml

+5-12
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,12 @@ jobs:
1313
fail-fast: true
1414
matrix:
1515
os: [ubuntu-latest]
16-
php: [8.4, 8.3, 8.2, 8.1]
17-
laravel: [11.*, 10.*, 9.*]
16+
php: [8.4, 8.3, 8.2]
17+
laravel: [12.*]
1818
stability: [prefer-lowest, prefer-stable]
1919
include:
20-
- laravel: 11.*
21-
testbench: 9.*
22-
- laravel: 10.*
23-
testbench: 8.*
24-
- laravel: 9.*
25-
testbench: 7.*
26-
exclude:
27-
- laravel: 11.*
28-
php: 8.1
20+
- laravel: 12.*
21+
testbench: 10.*
2922

3023
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
3124

@@ -56,7 +49,7 @@ jobs:
5649
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
5750
- name: Install dependencies
5851
run: |
59-
composer require "laravel/framework:${{ matrix.laravel }}" "nesbot/carbon:^2.64" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
52+
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
6053
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
6154
- name: Execute tests
6255
run: vendor/bin/phpunit

composer.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@
1818
}
1919
],
2020
"require": {
21-
"php": "^8.1",
22-
"illuminate/support": "^9.0|^10.0|^11.0",
23-
"illuminate/database": "^9.0|^10.0|^11.0"
21+
"php": "^8.2",
22+
"illuminate/support": "^12.0",
23+
"illuminate/database": "^12.0"
2424
},
2525
"require-dev": {
2626
"friendsofphp/php-cs-fixer": "^3.5",
27-
"orchestra/testbench": "^7.0|^8.0|^9.0",
28-
"phpunit/phpunit": "^9.0|^10.0"
27+
"orchestra/testbench": "^10.0",
28+
"phpunit/phpunit": "^11.0"
2929
},
3030
"autoload": {
3131
"psr-4": {

src/Facades/Schema.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public static function connection($name): Builder
2121
public static function getSchemaBuilder(Connection $connection): Builder
2222
{
2323
$getSchemaBuilderForGrammar = function (string $grammarClass, string $builderClass) use ($connection): Builder {
24-
$connection->setSchemaGrammar($connection->withTablePrefix(new $grammarClass()));
24+
$connection->setSchemaGrammar(new $grammarClass($connection));
2525

2626
return new $builderClass($connection);
2727
};

0 commit comments

Comments
 (0)