From 1d9e53f90d484e636dfca1812e38953befd97158 Mon Sep 17 00:00:00 2001 From: Nuno Maduro Date: Tue, 8 Feb 2022 16:27:21 +0000 Subject: [PATCH 01/29] Adds Laravel `v9.x` to changelog (#5803) * Adds Laravel `v9.x` to changelog * Update CHANGELOG.md Co-authored-by: Taylor Otwell --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 017a1718..e39f93ab 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ # Release Notes ## [Unreleased](https://github.com/laravel/laravel/compare/v9.0.0...9.x) + +## [v9.0.0 (2022-02-08)](https://github.com/laravel/laravel/compare/v8.6.11...v9.0.0) + +Laravel 9 includes a variety of changes to the application skeleton. Please consult the diff to see what's new. From 5901059ebaf268ca536f51d6a33c840846a86596 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Wed, 9 Feb 2022 08:53:22 -0600 Subject: [PATCH 02/29] add discovery method default --- app/Providers/EventServiceProvider.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/app/Providers/EventServiceProvider.php b/app/Providers/EventServiceProvider.php index 23499eb8..45ca6685 100644 --- a/app/Providers/EventServiceProvider.php +++ b/app/Providers/EventServiceProvider.php @@ -29,4 +29,14 @@ public function boot() { // } + + /** + * Determine if events and listeners should be automatically discovered. + * + * @return bool + */ + public function shouldDiscoverEvents() + { + return false; + } } From 6479a60e956eb91748a2d46a3f37e7bb4e1cafb6 Mon Sep 17 00:00:00 2001 From: Choraimy Kroonstuiver <3661474+axlon@users.noreply.github.com> Date: Wed, 9 Feb 2022 21:24:35 +0100 Subject: [PATCH 03/29] Improve typing on user factory --- database/factories/UserFactory.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/database/factories/UserFactory.php b/database/factories/UserFactory.php index d6ca9267..23b61d24 100644 --- a/database/factories/UserFactory.php +++ b/database/factories/UserFactory.php @@ -13,7 +13,7 @@ class UserFactory extends Factory /** * Define the model's default state. * - * @return array + * @return array */ public function definition() { @@ -29,7 +29,7 @@ public function definition() /** * Indicate that the model's email address should be unverified. * - * @return \Illuminate\Database\Eloquent\Factories\Factory + * @return static */ public function unverified() { From 8097a3da49748cb54e49807e3180b5abe9362e4e Mon Sep 17 00:00:00 2001 From: Jonathan Goode Date: Thu, 10 Feb 2022 01:08:38 +0000 Subject: [PATCH 04/29] Align min PHP version with docs --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 69137367..0aa742ea 100644 --- a/composer.json +++ b/composer.json @@ -5,7 +5,7 @@ "keywords": ["framework", "laravel"], "license": "MIT", "require": { - "php": "^8.0", + "php": "^8.0.2", "fruitcake/laravel-cors": "^2.0.5", "guzzlehttp/guzzle": "^7.2", "laravel/framework": "^9.0", From e077976680bdb2644698fb8965a1e2a8710b5d4b Mon Sep 17 00:00:00 2001 From: Felix Dorn Date: Fri, 11 Feb 2022 15:22:45 +0100 Subject: [PATCH 05/29] [9.x] Remove redundant `null`s (#5811) * follow up of #5791 * Update app.php Co-authored-by: Dries Vints --- config/app.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/app.php b/config/app.php index 1941d7c7..7c60cd9d 100644 --- a/config/app.php +++ b/config/app.php @@ -56,7 +56,7 @@ 'url' => env('APP_URL', 'http://localhost'), - 'asset_url' => env('ASSET_URL', null), + 'asset_url' => env('ASSET_URL'), /* |-------------------------------------------------------------------------- From efd49c6b94a575f3523f5809690314dc6d8bccf5 Mon Sep 17 00:00:00 2001 From: Markus Machatschek Date: Mon, 14 Feb 2022 18:05:17 +0100 Subject: [PATCH 06/29] Add Redis facade as comment in app.config (#5813) --- config/app.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/app.php b/config/app.php index 7c60cd9d..1bf5eec2 100644 --- a/config/app.php +++ b/config/app.php @@ -191,7 +191,7 @@ */ 'aliases' => Facade::defaultAliases()->merge([ - // ... + // 'Redis' => Illuminate\Support\Facades\Redis::class, ])->toArray(), ]; From f2b8023df3725631db1af11480b7f0f0b2576c74 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Mon, 14 Feb 2022 11:05:44 -0600 Subject: [PATCH 07/29] Revert "Add Redis facade as comment in app.config (#5813)" (#5814) This reverts commit efd49c6b94a575f3523f5809690314dc6d8bccf5. --- config/app.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/app.php b/config/app.php index 1bf5eec2..7c60cd9d 100644 --- a/config/app.php +++ b/config/app.php @@ -191,7 +191,7 @@ */ 'aliases' => Facade::defaultAliases()->merge([ - // 'Redis' => Illuminate\Support\Facades\Redis::class, + // ... ])->toArray(), ]; From 5eef672a6a8703bb834e2528090a8e25a8a2912d Mon Sep 17 00:00:00 2001 From: Shuvro Roy Date: Mon, 14 Feb 2022 23:20:49 +0600 Subject: [PATCH 08/29] [9.x] Fix lang alphabetical order (#5812) * Fix lang alphabetical order * Update pagination.php Co-authored-by: Taylor Otwell --- lang/en/validation.php | 48 +++++++++++++++++++++--------------------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/lang/en/validation.php b/lang/en/validation.php index 783003cf..4707f1a6 100644 --- a/lang/en/validation.php +++ b/lang/en/validation.php @@ -25,10 +25,10 @@ 'before' => 'The :attribute must be a date before :date.', 'before_or_equal' => 'The :attribute must be a date before or equal to :date.', 'between' => [ - 'numeric' => 'The :attribute must be between :min and :max.', - 'file' => 'The :attribute must be between :min and :max kilobytes.', - 'string' => 'The :attribute must be between :min and :max characters.', 'array' => 'The :attribute must have between :min and :max items.', + 'file' => 'The :attribute must be between :min and :max kilobytes.', + 'numeric' => 'The :attribute must be between :min and :max.', + 'string' => 'The :attribute must be between :min and :max characters.', ], 'boolean' => 'The :attribute field must be true or false.', 'confirmed' => 'The :attribute confirmation does not match.', @@ -50,16 +50,16 @@ 'file' => 'The :attribute must be a file.', 'filled' => 'The :attribute field must have a value.', 'gt' => [ - 'numeric' => 'The :attribute must be greater than :value.', - 'file' => 'The :attribute must be greater than :value kilobytes.', - 'string' => 'The :attribute must be greater than :value characters.', 'array' => 'The :attribute must have more than :value items.', + 'file' => 'The :attribute must be greater than :value kilobytes.', + 'numeric' => 'The :attribute must be greater than :value.', + 'string' => 'The :attribute must be greater than :value characters.', ], 'gte' => [ - 'numeric' => 'The :attribute must be greater than or equal to :value.', - 'file' => 'The :attribute must be greater than or equal to :value kilobytes.', - 'string' => 'The :attribute must be greater than or equal to :value characters.', 'array' => 'The :attribute must have :value items or more.', + 'file' => 'The :attribute must be greater than or equal to :value kilobytes.', + 'numeric' => 'The :attribute must be greater than or equal to :value.', + 'string' => 'The :attribute must be greater than or equal to :value characters.', ], 'image' => 'The :attribute must be an image.', 'in' => 'The selected :attribute is invalid.', @@ -70,31 +70,31 @@ 'ipv6' => 'The :attribute must be a valid IPv6 address.', 'json' => 'The :attribute must be a valid JSON string.', 'lt' => [ - 'numeric' => 'The :attribute must be less than :value.', - 'file' => 'The :attribute must be less than :value kilobytes.', - 'string' => 'The :attribute must be less than :value characters.', 'array' => 'The :attribute must have less than :value items.', + 'file' => 'The :attribute must be less than :value kilobytes.', + 'numeric' => 'The :attribute must be less than :value.', + 'string' => 'The :attribute must be less than :value characters.', ], 'lte' => [ - 'numeric' => 'The :attribute must be less than or equal to :value.', - 'file' => 'The :attribute must be less than or equal to :value kilobytes.', - 'string' => 'The :attribute must be less than or equal to :value characters.', 'array' => 'The :attribute must not have more than :value items.', + 'file' => 'The :attribute must be less than or equal to :value kilobytes.', + 'numeric' => 'The :attribute must be less than or equal to :value.', + 'string' => 'The :attribute must be less than or equal to :value characters.', ], 'mac_address' => 'The :attribute must be a valid MAC address.', 'max' => [ - 'numeric' => 'The :attribute must not be greater than :max.', - 'file' => 'The :attribute must not be greater than :max kilobytes.', - 'string' => 'The :attribute must not be greater than :max characters.', 'array' => 'The :attribute must not have more than :max items.', + 'file' => 'The :attribute must not be greater than :max kilobytes.', + 'numeric' => 'The :attribute must not be greater than :max.', + 'string' => 'The :attribute must not be greater than :max characters.', ], 'mimes' => 'The :attribute must be a file of type: :values.', 'mimetypes' => 'The :attribute must be a file of type: :values.', 'min' => [ - 'numeric' => 'The :attribute must be at least :min.', - 'file' => 'The :attribute must be at least :min kilobytes.', - 'string' => 'The :attribute must be at least :min characters.', 'array' => 'The :attribute must have at least :min items.', + 'file' => 'The :attribute must be at least :min kilobytes.', + 'numeric' => 'The :attribute must be at least :min.', + 'string' => 'The :attribute must be at least :min characters.', ], 'multiple_of' => 'The :attribute must be a multiple of :value.', 'not_in' => 'The selected :attribute is invalid.', @@ -117,10 +117,10 @@ 'required_without_all' => 'The :attribute field is required when none of :values are present.', 'same' => 'The :attribute and :other must match.', 'size' => [ - 'numeric' => 'The :attribute must be :size.', - 'file' => 'The :attribute must be :size kilobytes.', - 'string' => 'The :attribute must be :size characters.', 'array' => 'The :attribute must contain :size items.', + 'file' => 'The :attribute must be :size kilobytes.', + 'numeric' => 'The :attribute must be :size.', + 'string' => 'The :attribute must be :size characters.', ], 'starts_with' => 'The :attribute must start with one of the following: :values.', 'string' => 'The :attribute must be a string.', From 20b7e19a6584821f04db43f71ce446036db1cac8 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Mon, 14 Feb 2022 12:25:37 -0600 Subject: [PATCH 09/29] add default address --- .env.example | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.env.example b/.env.example index 8510237c..9bb1bd7c 100644 --- a/.env.example +++ b/.env.example @@ -34,7 +34,7 @@ MAIL_PORT=1025 MAIL_USERNAME=null MAIL_PASSWORD=null MAIL_ENCRYPTION=null -MAIL_FROM_ADDRESS=null +MAIL_FROM_ADDRESS="hello@example.com" MAIL_FROM_NAME="${APP_NAME}" AWS_ACCESS_KEY_ID= From 376ed676eedac46346a9aad5e6c1a07491fd6279 Mon Sep 17 00:00:00 2001 From: Dries Vints Date: Tue, 15 Feb 2022 15:32:48 +0100 Subject: [PATCH 10/29] Update RouteServiceProvider.php (#5816) --- app/Providers/RouteServiceProvider.php | 9 --------- 1 file changed, 9 deletions(-) diff --git a/app/Providers/RouteServiceProvider.php b/app/Providers/RouteServiceProvider.php index 7c17d1f0..457cb225 100644 --- a/app/Providers/RouteServiceProvider.php +++ b/app/Providers/RouteServiceProvider.php @@ -19,15 +19,6 @@ class RouteServiceProvider extends ServiceProvider */ public const HOME = '/home'; - /** - * The controller namespace for the application. - * - * When present, controller route declarations will automatically be prefixed with this namespace. - * - * @var string|null - */ - // protected $namespace = 'App\\Http\\Controllers'; - /** * Define your route model bindings, pattern filters, etc. * From 19f4e346d4e50eeab3a8840b93f89c9f1ffe2a42 Mon Sep 17 00:00:00 2001 From: m4tlch Date: Tue, 15 Feb 2022 17:09:29 +0200 Subject: [PATCH 11/29] Add underscore to prefix in database cache key (#5817) For Redis caching prefix with underscore : 'prefix' => env('REDIS_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_').'_database_'), but when cache stored in database, then the key is created "merged" with prefix, by this line: 'prefix' => env('CACHE_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_').'_cache'), for example, if "key" is a key for cache, then the result is: "laravel_cachekey", not a preferable "laravel_cache_key" --- config/cache.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/cache.php b/config/cache.php index 8736c7a7..0ad5c740 100644 --- a/config/cache.php +++ b/config/cache.php @@ -105,6 +105,6 @@ | */ - 'prefix' => env('CACHE_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_').'_cache'), + 'prefix' => env('CACHE_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_').'_cache_'), ]; From 345e46569d4b6a5c7093991a3257cdc0dcfe776b Mon Sep 17 00:00:00 2001 From: driesvints Date: Tue, 15 Feb 2022 18:07:39 +0000 Subject: [PATCH 12/29] Update CHANGELOG.md --- CHANGELOG.md | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e39f93ab..74df6381 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,20 @@ # Release Notes -## [Unreleased](https://github.com/laravel/laravel/compare/v9.0.0...9.x) +## [Unreleased](https://github.com/laravel/laravel/compare/v9.0.1...9.x) + +## [v9.0.1](https://github.com/laravel/laravel/compare/v9.0.0...v9.0.1) - 2022-02-15 + +### Changed + +- Improve typing on user factory by @axlon in https://github.com/laravel/laravel/pull/5806 +- Align min PHP version with docs by @u01jmg3 in https://github.com/laravel/laravel/pull/5807 +- Remove redundant `null`s by @felixdorn in https://github.com/laravel/laravel/pull/5811 +- Remove default commented namespace by @driesvints in https://github.com/laravel/laravel/pull/5816 +- Add underscore to prefix in database cache key by @m4tlch in https://github.com/laravel/laravel/pull/5817 + +### Fixed + +- Fix lang alphabetical order by @shuvroroy in https://github.com/laravel/laravel/pull/5812 ## [v9.0.0 (2022-02-08)](https://github.com/laravel/laravel/compare/v8.6.11...v9.0.0) From 4a6229aa654faae58f8ea627f4b771351692508c Mon Sep 17 00:00:00 2001 From: emargareten <46111162+emargareten@users.noreply.github.com> Date: Wed, 16 Feb 2022 16:18:19 +0200 Subject: [PATCH 13/29] Update RouteServiceProvider.php (#5818) --- app/Providers/RouteServiceProvider.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/app/Providers/RouteServiceProvider.php b/app/Providers/RouteServiceProvider.php index 457cb225..0ba5291f 100644 --- a/app/Providers/RouteServiceProvider.php +++ b/app/Providers/RouteServiceProvider.php @@ -31,11 +31,9 @@ public function boot() $this->routes(function () { Route::prefix('api') ->middleware('api') - ->namespace($this->namespace) ->group(base_path('routes/api.php')); Route::middleware('web') - ->namespace($this->namespace) ->group(base_path('routes/web.php')); }); } From 871ff9e65fea5588b1018d8770db6fc6ad37069d Mon Sep 17 00:00:00 2001 From: suyar <296399959@qq.com> Date: Thu, 17 Feb 2022 23:16:40 +0800 Subject: [PATCH 14/29] [9.x] Update sanctum config file (#5820) * Update sanctum config file * Update composer.json Co-authored-by: suyaqi Co-authored-by: Dries Vints --- composer.json | 2 +- config/sanctum.php | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 0aa742ea..5f338913 100644 --- a/composer.json +++ b/composer.json @@ -9,7 +9,7 @@ "fruitcake/laravel-cors": "^2.0.5", "guzzlehttp/guzzle": "^7.2", "laravel/framework": "^9.0", - "laravel/sanctum": "^2.14", + "laravel/sanctum": "^2.14.1", "laravel/tinker": "^2.7" }, "require-dev": { diff --git a/config/sanctum.php b/config/sanctum.php index 9281c92d..529cfdc9 100644 --- a/config/sanctum.php +++ b/config/sanctum.php @@ -1,5 +1,7 @@ explode(',', env('SANCTUM_STATEFUL_DOMAINS', sprintf( '%s%s', 'localhost,localhost:3000,127.0.0.1,127.0.0.1:8000,::1', - env('APP_URL') ? ','.parse_url(env('APP_URL'), PHP_URL_HOST) : '' + Sanctum::currentApplicationUrlWithPort() ))), /* From ecf7b06c4b2286eab6f4fc946588300c95e2cabb Mon Sep 17 00:00:00 2001 From: Dries Vints Date: Tue, 22 Feb 2022 16:42:30 +0100 Subject: [PATCH 15/29] Replace Laravel CORS package (#5825) --- app/Http/Kernel.php | 2 +- composer.json | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/app/Http/Kernel.php b/app/Http/Kernel.php index d3722c2d..4f18062a 100644 --- a/app/Http/Kernel.php +++ b/app/Http/Kernel.php @@ -16,7 +16,7 @@ class Kernel extends HttpKernel protected $middleware = [ // \App\Http\Middleware\TrustHosts::class, \App\Http\Middleware\TrustProxies::class, - \Fruitcake\Cors\HandleCors::class, + \Illuminate\Http\Middleware\HandleCors::class, \App\Http\Middleware\PreventRequestsDuringMaintenance::class, \Illuminate\Foundation\Http\Middleware\ValidatePostSize::class, \App\Http\Middleware\TrimStrings::class, diff --git a/composer.json b/composer.json index 5f338913..438f4487 100644 --- a/composer.json +++ b/composer.json @@ -6,9 +6,8 @@ "license": "MIT", "require": { "php": "^8.0.2", - "fruitcake/laravel-cors": "^2.0.5", "guzzlehttp/guzzle": "^7.2", - "laravel/framework": "^9.0", + "laravel/framework": "^9.2", "laravel/sanctum": "^2.14.1", "laravel/tinker": "^2.7" }, From dcf59f0ef8035abe9b03eb34e30c4e3f3b53fab6 Mon Sep 17 00:00:00 2001 From: driesvints Date: Tue, 22 Feb 2022 16:06:37 +0000 Subject: [PATCH 16/29] Update CHANGELOG.md --- CHANGELOG.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 74df6381..75827b48 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,14 @@ # Release Notes -## [Unreleased](https://github.com/laravel/laravel/compare/v9.0.1...9.x) +## [Unreleased](https://github.com/laravel/laravel/compare/v9.1.0...9.x) + +## [v9.1.0](https://github.com/laravel/laravel/compare/v9.0.1...v9.1.0) - 2022-02-22 + +### Changed + +- Remove namespace from Routes by @emargareten in https://github.com/laravel/laravel/pull/5818 +- Update sanctum config file by @suyar in https://github.com/laravel/laravel/pull/5820 +- Replace Laravel CORS package by @driesvints in https://github.com/laravel/laravel/pull/5825 ## [v9.0.1](https://github.com/laravel/laravel/compare/v9.0.0...v9.0.1) - 2022-02-15 From 969ff64e02b5ba316ebfe58aba76ca9ceac34542 Mon Sep 17 00:00:00 2001 From: Roy Shay Date: Tue, 22 Feb 2022 21:05:53 +0000 Subject: [PATCH 17/29] Small typo fix in filesystems.php (#5827) * Update filesystems.php * Update filesystems.php Co-authored-by: Taylor Otwell --- config/filesystems.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/filesystems.php b/config/filesystems.php index cf5abce7..888bd1ee 100644 --- a/config/filesystems.php +++ b/config/filesystems.php @@ -22,7 +22,7 @@ | | Here you may configure as many filesystem "disks" as you wish, and you | may even configure multiple disks of the same driver. Defaults have - | been setup for each driver as an example of the required options. + | been set up for each driver as an example of the required values. | | Supported Drivers: "local", "ftp", "sftp", "s3" | From 4ecd97bcf7e996e35b7672c69e3974b8e233bb1b Mon Sep 17 00:00:00 2001 From: Jesper Noordsij <45041769+jnoordsij@users.noreply.github.com> Date: Thu, 3 Mar 2022 15:13:57 +0100 Subject: [PATCH 18/29] Add option to configure Mailgun transporter scheme (#5831) --- config/services.php | 1 + 1 file changed, 1 insertion(+) diff --git a/config/services.php b/config/services.php index 2a1d616c..0ace530e 100644 --- a/config/services.php +++ b/config/services.php @@ -18,6 +18,7 @@ 'domain' => env('MAILGUN_DOMAIN'), 'secret' => env('MAILGUN_SECRET'), 'endpoint' => env('MAILGUN_ENDPOINT', 'api.mailgun.net'), + 'scheme' => 'https', ], 'postmark' => [ From 93395a3468b7827bae2117de7543eddd5eb4a4e5 Mon Sep 17 00:00:00 2001 From: Ankur Kumar Date: Sun, 6 Mar 2022 22:00:51 +0530 Subject: [PATCH 19/29] [9.x] add throw to filesystems config (#5835) --- config/filesystems.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config/filesystems.php b/config/filesystems.php index 888bd1ee..e9d9dbdb 100644 --- a/config/filesystems.php +++ b/config/filesystems.php @@ -33,6 +33,7 @@ 'local' => [ 'driver' => 'local', 'root' => storage_path('app'), + 'throw' => false, ], 'public' => [ @@ -40,6 +41,7 @@ 'root' => storage_path('app/public'), 'url' => env('APP_URL').'/storage', 'visibility' => 'public', + 'throw' => false, ], 's3' => [ @@ -51,6 +53,7 @@ 'url' => env('AWS_URL'), 'endpoint' => env('AWS_ENDPOINT'), 'use_path_style_endpoint' => env('AWS_USE_PATH_STYLE_ENDPOINT', false), + 'throw' => false, ], ], From 95fec9a3e8a98bc58f6a932875f84d62a1693308 Mon Sep 17 00:00:00 2001 From: Dries Vints Date: Tue, 8 Mar 2022 15:38:39 +0100 Subject: [PATCH 20/29] Update mail.php (#5836) --- config/mail.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/mail.php b/config/mail.php index 87b6fe3c..11bfe7e1 100644 --- a/config/mail.php +++ b/config/mail.php @@ -58,7 +58,7 @@ 'sendmail' => [ 'transport' => 'sendmail', - 'path' => env('MAIL_SENDMAIL_PATH', '/usr/sbin/sendmail -t -i'), + 'path' => env('MAIL_SENDMAIL_PATH', '/usr/sbin/sendmail -bs -i'), ], 'log' => [ From 67be95196b9b980d251a53b614bb7f8d6889bb22 Mon Sep 17 00:00:00 2001 From: driesvints Date: Tue, 8 Mar 2022 16:29:41 +0000 Subject: [PATCH 21/29] Update CHANGELOG.md --- CHANGELOG.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 75827b48..8943efd8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,18 @@ # Release Notes -## [Unreleased](https://github.com/laravel/laravel/compare/v9.1.0...9.x) +## [Unreleased](https://github.com/laravel/laravel/compare/v9.1.1...9.x) + +## [v9.1.1](https://github.com/laravel/laravel/compare/v9.1.0...v9.1.1) - 2022-03-08 + +### Changed + +- Add option to configure Mailgun transporter scheme by @jnoordsij in https://github.com/laravel/laravel/pull/5831 +- Add `throw` to filesystems config by @ankurk91 in https://github.com/laravel/laravel/pull/5835 + +### Fixed + +- Small typo fix in filesystems.php by @tooshay in https://github.com/laravel/laravel/pull/5827 +- Update sendmail default params by @driesvints in https://github.com/laravel/laravel/pull/5836 ## [v9.1.0](https://github.com/laravel/laravel/compare/v9.0.1...v9.1.0) - 2022-02-22 From 9605fb17a3263a7d95124589e17bcee34df60200 Mon Sep 17 00:00:00 2001 From: Matthias Niess Date: Wed, 9 Mar 2022 17:34:17 +0100 Subject: [PATCH 22/29] The docker-compose.override.yml should not be ignored by default (#5838) While this file can be used for local overrides, that is not its only intended usage. E.g. a common setup would be like this: - *docker-compose.yml*: services shared across builds - *docker-compose.override.yml*: services only used in development - *docker-compose.production.yml*: configuration needed for building production images. Now for regular development you just need to run `docker-compose up --build` and only in you CI you would build and run for production by explicitly naming the yml files. TL;DR: Excluding docker-compose.override.yml seems to be a personal preference of someone and they should do that in their global .gitignore if the are so inclined. --- .gitignore | 1 - 1 file changed, 1 deletion(-) diff --git a/.gitignore b/.gitignore index eb003b01..bc67a663 100644 --- a/.gitignore +++ b/.gitignore @@ -6,7 +6,6 @@ .env .env.backup .phpunit.result.cache -docker-compose.override.yml Homestead.json Homestead.yaml npm-debug.log From 660417c9f7d236bb702ca3d1f9e26d1764493e7a Mon Sep 17 00:00:00 2001 From: driesvints Date: Tue, 15 Mar 2022 15:58:42 +0000 Subject: [PATCH 23/29] Update CHANGELOG.md --- CHANGELOG.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8943efd8..1b9a70cb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,12 @@ # Release Notes -## [Unreleased](https://github.com/laravel/laravel/compare/v9.1.1...9.x) +## [Unreleased](https://github.com/laravel/laravel/compare/v9.1.2...9.x) + +## [v9.1.2](https://github.com/laravel/laravel/compare/v9.1.1...v9.1.2) - 2022-03-15 + +### Changed + +- The docker-compose.override.yml should not be ignored by default by @dakira in https://github.com/laravel/laravel/pull/5838 ## [v9.1.1](https://github.com/laravel/laravel/compare/v9.1.0...v9.1.1) - 2022-03-08 From b18216ad5de3886c6325afa238a67016af1db83e Mon Sep 17 00:00:00 2001 From: Dries Vints Date: Thu, 17 Mar 2022 10:53:43 +0100 Subject: [PATCH 24/29] Update .styleci.yml (#5843) --- .styleci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.styleci.yml b/.styleci.yml index 679a631e..6150749f 100644 --- a/.styleci.yml +++ b/.styleci.yml @@ -1,6 +1,6 @@ php: preset: laravel - version: 8 + version: 8.1 disabled: - no_unused_imports finder: From 222908f96f7369fe5039d6cda4b84d15cacc1fb6 Mon Sep 17 00:00:00 2001 From: Dries Vints Date: Thu, 17 Mar 2022 11:05:03 +0100 Subject: [PATCH 25/29] Update .styleci.yml --- .styleci.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.styleci.yml b/.styleci.yml index 6150749f..79f63b44 100644 --- a/.styleci.yml +++ b/.styleci.yml @@ -1,6 +1,5 @@ php: preset: laravel - version: 8.1 disabled: - no_unused_imports finder: From d8f0e93c561fac7b7c5ae988f566c220d4f88b24 Mon Sep 17 00:00:00 2001 From: Noboru Shiroiwa <14008307+nshiro@users.noreply.github.com> Date: Tue, 22 Mar 2022 01:00:48 +0900 Subject: [PATCH 26/29] [9.x] Add an example to the class aliases (#5846) * Add an example to the class aliases * Update app.php Co-authored-by: Taylor Otwell --- config/app.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/app.php b/config/app.php index 7c60cd9d..b02c7f4b 100644 --- a/config/app.php +++ b/config/app.php @@ -191,7 +191,7 @@ */ 'aliases' => Facade::defaultAliases()->merge([ - // ... + // 'ExampleClass' => App\Example\ExampleClass::class, ])->toArray(), ]; From 9ffc18aa427450c14026596024f36155c93c4707 Mon Sep 17 00:00:00 2001 From: Jack Ellis Date: Mon, 21 Mar 2022 17:35:38 -0500 Subject: [PATCH 27/29] The comment for cache key prefix needed an update (#5849) * The comment for cache key prefix needed an update * formatting Co-authored-by: Taylor Otwell --- config/cache.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config/cache.php b/config/cache.php index 0ad5c740..33bb2954 100644 --- a/config/cache.php +++ b/config/cache.php @@ -99,9 +99,9 @@ | Cache Key Prefix |-------------------------------------------------------------------------- | - | When utilizing a RAM based store such as APC or Memcached, there might - | be other applications utilizing the same cache. So, we'll specify a - | value to get prefixed to all our keys so we can avoid collisions. + | When utilizing the APC, database, memcached, Redis, or DynamoDB cache + | stores there might be other applications using the same cache. For + | that reason, you may prefix every cache key to avoid collisions. | */ From c4f8ed0915417fe668fb8d25b3f3c40b48d408c1 Mon Sep 17 00:00:00 2001 From: Dries Vints Date: Wed, 23 Mar 2022 13:33:54 +0100 Subject: [PATCH 28/29] Update update-changelog.yml --- .github/workflows/update-changelog.yml | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) diff --git a/.github/workflows/update-changelog.yml b/.github/workflows/update-changelog.yml index 0200e2b9..eaeaf1f8 100644 --- a/.github/workflows/update-changelog.yml +++ b/.github/workflows/update-changelog.yml @@ -6,24 +6,4 @@ on: jobs: update: - runs-on: ubuntu-latest - - steps: - - name: Checkout code - uses: actions/checkout@v2 - with: - ref: ${{ github.ref_name }} - - - name: Update Changelog - uses: stefanzweifel/changelog-updater-action@v1 - with: - latest-version: ${{ github.event.release.tag_name }} - release-notes: ${{ github.event.release.body }} - compare-url-target-revision: ${{ github.event.release.target_commitish }} - - - name: Commit updated CHANGELOG - uses: stefanzweifel/git-auto-commit-action@v4 - with: - branch: ${{ github.event.release.target_commitish }} - commit_message: Update CHANGELOG.md - file_pattern: CHANGELOG.md + uses: laravel/.github/.github/workflows/update-changelog.yml@main From 8594815f5e85a8e9d12519c5df1bbda6efb1ae95 Mon Sep 17 00:00:00 2001 From: neoteknic Date: Fri, 25 Mar 2022 16:38:42 +0100 Subject: [PATCH 29/29] Add username in config to use with phpredis + ACL (#5851) Linked to https://github.com/laravel/framework/pull/41683/commits --- config/database.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config/database.php b/config/database.php index 0faebaee..2a42e193 100644 --- a/config/database.php +++ b/config/database.php @@ -129,6 +129,7 @@ 'default' => [ 'url' => env('REDIS_URL'), 'host' => env('REDIS_HOST', '127.0.0.1'), + 'username' => env('REDIS_USERNAME'), 'password' => env('REDIS_PASSWORD'), 'port' => env('REDIS_PORT', '6379'), 'database' => env('REDIS_DB', '0'), @@ -137,6 +138,7 @@ 'cache' => [ 'url' => env('REDIS_URL'), 'host' => env('REDIS_HOST', '127.0.0.1'), + 'username' => env('REDIS_USERNAME'), 'password' => env('REDIS_PASSWORD'), 'port' => env('REDIS_PORT', '6379'), 'database' => env('REDIS_CACHE_DB', '1'),