Skip to content

Commit

Permalink
Add support for larvel 10
Browse files Browse the repository at this point in the history
  • Loading branch information
oddvalue committed Feb 22, 2023
1 parent c0796ea commit 6237c13
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 7 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,17 @@ jobs:
fail-fast: true
matrix:
os: [ubuntu-latest, windows-latest]
php: [8.0,8.1]
laravel: [9.*]
php: [8.0,8.1,8.2]
laravel: [9.*,10.*]
stability: [prefer-lowest, prefer-stable]
include:
- laravel: 9.*
testbench: 7.*
- laravel: 10.*
testbench: 8.*
exclude:
- php: 8.0
laravel: 10.*

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

Expand Down
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,22 +19,22 @@
"require": {
"php": "^8.0",
"doctrine/dbal": "^3.3",
"illuminate/contracts": "^9.0",
"illuminate/contracts": "^9.0|^10.0",
"spatie/laravel-package-tools": "^1.9.2"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.8",
"nunomaduro/collision": "^6.0",
"nunomaduro/larastan": "^2.0.1",
"orchestra/testbench": "^7.0",
"orchestra/testbench": "^7.0|^8.0",
"pestphp/pest": "^1.21",
"pestphp/pest-plugin-laravel": "^1.1",
"pestphp/pest-plugin-laravel": "^1.1|^2.0",
"phpstan/extension-installer": "^1.1",
"phpstan/phpstan-deprecation-rules": "^1.0",
"phpstan/phpstan-phpunit": "^1.0",
"phpunit/phpunit": "^9.5",
"spatie/laravel-ray": "^1.26",
"spatie/pest-plugin-test-time": "^1.1"
"spatie/pest-plugin-test-time": "^1.1",
"roave/security-advisories": "dev-latest"
},
"autoload": {
"psr-4": {
Expand Down
3 changes: 3 additions & 0 deletions src/LaravelDraftsServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace Oddvalue\LaravelDrafts;

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
use Spatie\LaravelPackageTools\Package;
use Spatie\LaravelPackageTools\PackageServiceProvider;

Expand All @@ -23,6 +24,8 @@ public function configurePackage(Package $package): void

public function packageRegistered()
{
Schema::useNativeSchemaOperationsIfPossible();

Blueprint::macro('drafts', function (
string $uuid = null,
string $publishedAt = null,
Expand Down

0 comments on commit 6237c13

Please sign in to comment.