Skip to content

Commit

Permalink
[3.x] Add Laravel 11 Support (#82)
Browse files Browse the repository at this point in the history
* update composer dependencies
* drop php 8.1 and Laravel 9, add php 8.3 and Laravel 11
* drop Laravel 10 support: Sanctum 4 will not work with Laravel 10, while Sanctum 3 will not work with Laravel 11.
* fix structure test case
* remove testing scaffold
* add tests to feature folder
* add test dump files
* add base test case
* handle file and resource issues
* update phpunit config
  • Loading branch information
lupinitylabs committed Mar 15, 2024
1 parent 7d13100 commit f503d97
Show file tree
Hide file tree
Showing 71 changed files with 193 additions and 2,366 deletions.
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# env needed for sail
APP_SERVICE=app
DB_HOST=laravel-protector-mysql_testing-1
DB_DATABASE=protector_test
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ jobs:
strategy:
fail-fast: true
matrix:
php: [ 8.1, 8.2 ]
laravel: [ 9.*, 10.* ]
php: [ 8.2, 8.3 ]
laravel: [ 11.* ]
dependency-version: [ prefer-stable ]

name: PHP ${{ matrix.php }} with Laravel ${{ matrix.laravel }} (${{ matrix.dependency-version }})
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -271,9 +271,9 @@ laravel/sanctum ^2.4 in your app to lock its version.

Likelihood of impact: low

- Access to the formerly public methods getGitRevision(), getGitHeadDate() or getGitBranch() is now protected.
- Access to the formerly public methods `getGitRevision()`, `getGitHeadDate()` or `getGitBranch()` is now protected.
You now need to call getMetaData() and extract the information from the returned array.

## Contributing

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.
Expand Down
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
22 changes: 0 additions & 22 deletions Tests/scaffolds/includes-protector/bootstrap/app.php

This file was deleted.

2 changes: 0 additions & 2 deletions Tests/scaffolds/includes-protector/bootstrap/cache/.gitignore

This file was deleted.

31 changes: 0 additions & 31 deletions Tests/scaffolds/includes-protector/composer.json

This file was deleted.

253 changes: 0 additions & 253 deletions Tests/scaffolds/includes-protector/config/app.php

This file was deleted.

0 comments on commit f503d97

Please sign in to comment.