Skip to content

Commit

Permalink
Merge pull request #6 from ziarv/laravel-11-support
Browse files Browse the repository at this point in the history
Add Support For Laravel 11
  • Loading branch information
huzaifaarain authored Mar 17, 2024
2 parents 5c83670 + 05e9663 commit 16926d7
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 11 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,23 @@ jobs:
fail-fast: true
matrix:
os: [ubuntu-latest]
php: [8.1,8.2]
laravel: [9.*,10.*]
php: [8.0,8.1,8.2]
laravel: ["^11.0", "^10.0", "^9.0"]
stability: [prefer-stable]
include:
- laravel: 10.*
- laravel: "^11.0"
testbench: 9.*
- laravel: "^10.0"
testbench: 8.*
- laravel: 9.*
- laravel: "^9.0"
testbench: 7.*
exclude:
- laravel: "^11.0"
php: 8.1
- laravel: "^11.0"
php: 8.0
- laravel: "^10.0"
php: 8.0

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

Expand Down
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@
"require": {
"php": "^8.0.2|^8.1|^8.2",
"guzzlehttp/guzzle": "^7.0",
"illuminate/contracts": "^9.0|^10.0",
"laravel/telescope": "^4.0",
"illuminate/contracts": "^11.0|^10.0|^9.0",
"laravel/telescope": "^5.0",
"spatie/laravel-package-tools": "^1.14.0"
},
"require-dev": {
"laravel/pint": "^1.0",
"nunomaduro/collision": "^7.9|^6.0",
"orchestra/testbench": "^8.0|^7.0"
"nunomaduro/collision": "^8.0|^7.9|^6.0",
"orchestra/testbench": "^9.0|^8.0|^7.0"
},
"autoload": {
"psr-4": {
Expand Down
3 changes: 0 additions & 3 deletions src/TelescopeGuzzleRecorder.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ public function contentWithinLimits($content)
/**
* Format the given response object.
*
* @param \MuhammadHuzaifa\TelescopeGuzzleWatcher\Response $response
* @return array|string
*/
protected function response(Response $response)
Expand Down Expand Up @@ -176,7 +175,6 @@ protected function hideParameters($data, $hidden)
/**
* Extract the input from the given request.
*
* @param \MuhammadHuzaifa\TelescopeGuzzleWatcher\Request $request
* @return array
*/
protected function input(Request $request)
Expand Down Expand Up @@ -217,7 +215,6 @@ protected function input(Request $request)
/**
* Extract the query string from the given request url
*
* @param \MuhammadHuzaifa\TelescopeGuzzleWatcher\Request $request
* @return array
*/
protected function queryString(Request $request)
Expand Down
10 changes: 10 additions & 0 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,14 @@ public function terminateTelescope()
{
Telescope::store(app(EntriesRepository::class));
}

protected function beforeRefreshingDatabase()
{
if (version_compare($this->app->version(), '11.0.0', '>=')) {
$config = $this->app->get('config');
$config->set('database.migrations.update_date_on_publish', false);
}

$this->artisan('vendor:publish', ['--tag' => 'telescope-migrations']);
}
}

0 comments on commit 16926d7

Please sign in to comment.