From e417ebc95d76da3cbee761f0d2b77aebdf52cdc9 Mon Sep 17 00:00:00 2001 From: Sakari Cajanus Date: Fri, 24 Jan 2025 22:55:06 +0200 Subject: [PATCH 1/7] Remove extra hourly() method in console.php (#6525) --- routes/console.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/console.php b/routes/console.php index eff2ed240..3c9adf1af 100644 --- a/routes/console.php +++ b/routes/console.php @@ -5,4 +5,4 @@ use Illuminate\Support\Facades\Artisan; Artisan::command('inspire', function () { $this->comment(Inspiring::quote()); -})->purpose('Display an inspiring quote')->hourly(); +})->purpose('Display an inspiring quote'); From 9edc9aad80f22bc5fb49ec211b5b997b6b67aa15 Mon Sep 17 00:00:00 2001 From: taylorotwell <463230+taylorotwell@users.noreply.github.com> Date: Tue, 28 Jan 2025 16:01:29 +0000 Subject: [PATCH 2/7] Update CHANGELOG --- CHANGELOG.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 040d4bd10..ea189f60c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,12 @@ # Release Notes -## [Unreleased](https://github.com/laravel/laravel/compare/v11.6.0...11.x) +## [Unreleased](https://github.com/laravel/laravel/compare/v11.6.1...11.x) + +## [v11.6.1](https://github.com/laravel/laravel/compare/v11.6.0...v11.6.1) - 2025-01-24 + +* Update vite dependencies by [@laserhybiz](https://github.com/laserhybiz) in https://github.com/laravel/laravel/pull/6521 +* [11.x] Sync `session.lifetime` configuration by [@crynobone](https://github.com/crynobone) in https://github.com/laravel/laravel/pull/6522 +* Remove extra hourly() method in console.php by [@scajanus](https://github.com/scajanus) in https://github.com/laravel/laravel/pull/6525 ## [v11.6.0](https://github.com/laravel/laravel/compare/v11.5.1...v11.6.0) - 2025-01-21 From cf5aed8c2e7fe9ae038e76ccd0ac8de1cdc3dded Mon Sep 17 00:00:00 2001 From: Anders Jenbo Date: Wed, 5 Feb 2025 12:01:25 +0100 Subject: [PATCH 3/7] Improve static analysis by adding type hints for $app in artisan and public/index.php (#6531) * feat: add type hints for $app in artisan and public/index.php Added PHPDoc type hints for the $app variable to improve static analysis support in PHPStan and PHPStorm. This prevents tools from incorrectly flagging the variable and enhances developer experience. No functional changes; only improves code readability and IDE support. * Update artisan * Update index.php --------- Co-authored-by: Taylor Otwell --- artisan | 7 +++++-- public/index.php | 7 +++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/artisan b/artisan index 8e04b4224..c35e31d6a 100755 --- a/artisan +++ b/artisan @@ -1,6 +1,7 @@ #!/usr/bin/env php handleCommand(new ArgvInput); +/** @var Application $app */ +$app = require_once __DIR__.'/bootstrap/app.php'; + +$status = $app->handleCommand(new ArgvInput); exit($status); diff --git a/public/index.php b/public/index.php index 947d98963..ee8f07e99 100644 --- a/public/index.php +++ b/public/index.php @@ -1,5 +1,6 @@ handleRequest(Request::capture()); +/** @var Application $app */ +$app = require_once __DIR__.'/../bootstrap/app.php'; + +$app->handleRequest(Request::capture()); From a8b5e075228a28344876ccedd09bc0ba850b621c Mon Sep 17 00:00:00 2001 From: Mior Muhammad Zaki Date: Tue, 11 Feb 2025 21:37:43 +0800 Subject: [PATCH 4/7] chore: update changelog CI permission --- .github/workflows/update-changelog.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/update-changelog.yml b/.github/workflows/update-changelog.yml index 703523313..3b681a721 100644 --- a/.github/workflows/update-changelog.yml +++ b/.github/workflows/update-changelog.yml @@ -4,7 +4,8 @@ on: release: types: [released] -permissions: {} +permissions: + contents: write jobs: update: From 55738c0c4e17e6eeff52f5486293e5f5e6be511c Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Tue, 11 Feb 2025 11:56:59 -0600 Subject: [PATCH 5/7] add REDIS_PERSISTENT env var --- config/database.php | 1 + 1 file changed, 1 insertion(+) diff --git a/config/database.php b/config/database.php index 125949ed5..8910562d6 100644 --- a/config/database.php +++ b/config/database.php @@ -148,6 +148,7 @@ return [ 'options' => [ 'cluster' => env('REDIS_CLUSTER', 'redis'), 'prefix' => env('REDIS_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_').'_database_'), + 'persistent' => env('REDIS_PERSISTENT', false), ], 'default' => [ From 6f1ebe26a49dc76cd922f7dde481acc56ab5e6f8 Mon Sep 17 00:00:00 2001 From: Mior Muhammad Zaki Date: Wed, 12 Feb 2025 09:50:55 +0800 Subject: [PATCH 6/7] chore: Update `update-changelog.yml` --- .github/workflows/update-changelog.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/update-changelog.yml b/.github/workflows/update-changelog.yml index 3b681a721..703523313 100644 --- a/.github/workflows/update-changelog.yml +++ b/.github/workflows/update-changelog.yml @@ -4,8 +4,7 @@ on: release: types: [released] -permissions: - contents: write +permissions: {} jobs: update: From 79a94de4dd55e151987a1a7c69a161d3666fa889 Mon Sep 17 00:00:00 2001 From: Andrew Brown Date: Wed, 12 Feb 2025 10:13:57 -0600 Subject: [PATCH 7/7] remove `APP_TIMEZONE` environment variable (#6536) force the timezone to be defined in the config file, rather than deferring to an environment variable. IMO having the timezone dependent on an environment variable adds an unnecessary amount of risk for your average user who may be unaware of the effects from changing this value. some scenarios where this could cause issues: - devs set this value to their local timezone on their local dev machines, and they are writing `Carbon:create()` commands or similar that now are working only under the assumption of that timezone value - you have multiple production servers setup across the country and each has their own timezone value according to their location, but they all talk to a central database. now the database is loaded with mixed timezone variables having an explicit value defined once for the application removes these risks. reverts part of #6188 --- .env.example | 1 - config/app.php | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.env.example b/.env.example index 6fb3de652..93561a48d 100644 --- a/.env.example +++ b/.env.example @@ -2,7 +2,6 @@ APP_NAME=Laravel APP_ENV=local APP_KEY= APP_DEBUG=true -APP_TIMEZONE=UTC APP_URL=http://localhost APP_LOCALE=en diff --git a/config/app.php b/config/app.php index f46726731..324b513a2 100644 --- a/config/app.php +++ b/config/app.php @@ -65,7 +65,7 @@ return [ | */ - 'timezone' => env('APP_TIMEZONE', 'UTC'), + 'timezone' => 'UTC', /* |--------------------------------------------------------------------------