Skip to content

Commit

Permalink
Refactor ExistsByHash to allow chaining query builder methods (#121)
Browse files Browse the repository at this point in the history
* refactor ExistsByHash to allow chaining query builder methods

* use qualified column for queries

* build(deps-dev): bump phpunit/phpunit from 10.5.7 to 10.5.10 (#120)

Bumps [phpunit/phpunit](https://github.com/sebastianbergmann/phpunit) from 10.5.7 to 10.5.10.
- [Changelog](https://github.com/sebastianbergmann/phpunit/blob/10.5.10/ChangeLog-10.5.md)
- [Commits](sebastianbergmann/phpunit@10.5.7...10.5.10)

---
updated-dependencies:
- dependency-name: phpunit/phpunit
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps-dev): bump orchestra/testbench from 8.20.0 to 8.21.1 (#118)

Bumps [orchestra/testbench](https://github.com/orchestral/testbench) from 8.20.0 to 8.21.1.
- [Release notes](https://github.com/orchestral/testbench/releases)
- [Changelog](https://github.com/orchestral/testbench/blob/develop/CHANGELOG-8.x.md)
- [Commits](orchestral/testbench@v8.20.0...v8.21.1)

---
updated-dependencies:
- dependency-name: orchestra/testbench
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* drop support for laravel version 7-9

* chore: remove orchestra constraint

* chore: add new basic model test

* chore: make styleci happy

* chore: add branch alias for 4.x-dev

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Rifki Alhuraibi <veelasky@pm.me>
  • Loading branch information
3 people authored Feb 11, 2024
1 parent 7350bb6 commit ded5952
Show file tree
Hide file tree
Showing 8 changed files with 250 additions and 204 deletions.
30 changes: 3 additions & 27 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,8 @@ jobs:
runs-on: ubuntu-20.04
strategy:
matrix:
php: [ 8.0, 8.1, 8.2, 8.3]
laravel: [10.*, 9.*, 8.*, 7.*]
exclude:
- laravel: 7.*
php: 8.1
- laravel: 7.*
php: 8.2
- laravel: 7.*
php: 8.3
- laravel: 10.*
php: 8.0
include:
- laravel: 10.*
testbench: 8.*
- laravel: 9.*
testbench: 7.*
- laravel: 8.*
testbench: 6.*
- laravel: 7.*
testbench: ^5.2
php: [ 8.1, 8.2, 8.3]
laravel: [10.*]
name: php ${{ matrix.php }} on laravel ${{ matrix.laravel }}
steps:
- name: Checkout code
Expand All @@ -51,15 +33,9 @@ jobs:
${{ runner.os }}-composer-
- name: Install dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
composer update --prefer-dist --no-interaction --no-suggest
- name: Test phpunit 9
if: matrix.laravel != '10.*'
run: ./vendor/bin/phpunit
- name: Test on phpunit 10
if: matrix.laravel == '10.*'
- name: Test
run: |
./vendor/bin/phpunit --migrate-configuration
./vendor/bin/phpunit
- name: send coverage to codecov.io
uses: codecov/codecov-action@v1
Expand Down
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,13 @@ Automatic HashId generator for your eloquent model.

### Version Compatibilities

| Laravel HashId | PHP Version | Laravel 5.* | Laravel 6.* | Laravel 7.* | Laravel 8.* | Laravel 9.* | Laravel 10.* |
|------------------|:----------------------:|:------------------: |:------------------: |:------------------: |:------------------: |:------------------: |:------------------: |
| `1.x` |`>=7.0` | :white_check_mark: | :white_check_mark: | :x: | :x: | :x: | :x: |
| `2.x` |`>=7.2` - `<= 8.0` | :x: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :x: |
| `3.0` | `>=7.4` \|\| `>= 8.0` | :x: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :x: |
| `3.1` | `>= 8.0` | :x: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| Laravel HashId | PHP Version | Laravel 5.* | Laravel 6.* | Laravel 7.* | Laravel 8.* | Laravel 9.* | Laravel 10.* |
|------------------|:-----------------------:|:------------------: |:------------------: |:------------------: |:------------------: |:------------------: |:------------------: |
| `1.x` | `>=7.0` | :white_check_mark: | :white_check_mark: | :x: | :x: | :x: | :x: |
| `2.x` | `>=7.2` - `<= 8.0` | :x: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :x: |
| `3.0` | `>=7.4` \|\| `>= 8.0` | :x: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :x: |
| `3.1` | `>= 8.0` | :x: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| `4.x` | `>= 8.1` | :x: | :x: | :x: | :x: | :x: | :white_check_mark: |

### Install

Expand Down
19 changes: 11 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,18 @@
}
],
"require": {
"php" : "^8.0",
"hashids/hashids": "^4.0|^5.0",
"php" : "^8.1",
"hashids/hashids": "^5.0",
"illuminate/contracts": ">=6.18",
"illuminate/config": ">=6.18",
"illuminate/support": ">=6.18",
"illuminate/validation": ">=6.18",
"illuminate/database": ">=6.18"
"illuminate/config": ">=10.0",
"illuminate/support": ">=10.0",
"illuminate/validation": ">=10.0",
"illuminate/database": ">=10.0"
},
"require-dev": {
"roave/security-advisories": "dev-latest",
"phpunit/phpunit": ">=8.5",
"orchestra/testbench": ">=4.0"
"phpunit/phpunit": ">=10.0",
"orchestra/testbench": ">=8.0"
},
"autoload": {
"psr-4": {
Expand All @@ -43,6 +43,9 @@
"aliases" : {
"HashId" : "Veelasky\\LaravelHashId\\Facade"
}
},
"branch-alias": {
"dev-master": "4.0.x-dev"
}
}
}
Loading

0 comments on commit ded5952

Please sign in to comment.