From ce62296fa91534a394a4037b0fd2a775826c4fbf Mon Sep 17 00:00:00 2001 From: Graham Campbell Date: Tue, 26 Jul 2022 14:05:37 +0100 Subject: [PATCH 01/33] [9.x] Don't need to ignore vite config file (#5953) * Don't need to ignore vite config file * Apply fixes from StyleCI Co-authored-by: StyleCI Bot --- .styleci.yml | 5 +---- vite.config.js | 5 +---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/.styleci.yml b/.styleci.yml index 4705a3738..9daadf161 100644 --- a/.styleci.yml +++ b/.styleci.yml @@ -5,8 +5,5 @@ php: finder: not-name: - index.php -js: - finder: - not-name: - - vite.config.js +js: true css: true diff --git a/vite.config.js b/vite.config.js index 89f26f5db..421b56956 100644 --- a/vite.config.js +++ b/vite.config.js @@ -4,10 +4,7 @@ import laravel from 'laravel-vite-plugin'; export default defineConfig({ plugins: [ laravel({ - input: [ - 'resources/css/app.css', - 'resources/js/app.js', - ], + input: ['resources/css/app.css', 'resources/js/app.js'], refresh: true, }), ], From 944c87da745bd7ee031d165af18177468d9ae207 Mon Sep 17 00:00:00 2001 From: driesvints Date: Tue, 26 Jul 2022 15:27:11 +0000 Subject: [PATCH 02/33] Update CHANGELOG --- CHANGELOG.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3a94d1db4..5c278f3e1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,13 @@ # Release Notes -## [Unreleased](https://github.com/laravel/laravel/compare/v9.3.0...9.x) +## [Unreleased](https://github.com/laravel/laravel/compare/v9.3.1...9.x) + +## [v9.3.1](https://github.com/laravel/laravel/compare/v9.3.0...v9.3.1) - 2022-07-26 + +### Changed + +- Update font delivery by @abenerd in https://github.com/laravel/laravel/pull/5952 +- Don't need to ignore vite config file by @GrahamCampbell in https://github.com/laravel/laravel/pull/5953 ## [v9.3.0](https://github.com/laravel/laravel/compare/v9.2.1...v9.3.0) - 2022-07-20 From 6e1103180b439bf6970b4a50e9e42cc5de9f9bf3 Mon Sep 17 00:00:00 2001 From: suyar <296399959@qq.com> Date: Fri, 29 Jul 2022 21:01:11 +0800 Subject: [PATCH 03/33] Update laravel/sanctum version (#5957) --- composer.json | 2 +- .../2019_12_14_000001_create_personal_access_tokens_table.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 14da264de..b140145e9 100644 --- a/composer.json +++ b/composer.json @@ -8,7 +8,7 @@ "php": "^8.0.2", "guzzlehttp/guzzle": "^7.2", "laravel/framework": "^9.19", - "laravel/sanctum": "^2.14.1", + "laravel/sanctum": "^3.0", "laravel/tinker": "^2.7" }, "require-dev": { diff --git a/database/migrations/2019_12_14_000001_create_personal_access_tokens_table.php b/database/migrations/2019_12_14_000001_create_personal_access_tokens_table.php index fd235f8c5..6c81fd229 100644 --- a/database/migrations/2019_12_14_000001_create_personal_access_tokens_table.php +++ b/database/migrations/2019_12_14_000001_create_personal_access_tokens_table.php @@ -20,6 +20,7 @@ return new class extends Migration $table->string('token', 64)->unique(); $table->text('abilities')->nullable(); $table->timestamp('last_used_at')->nullable(); + $table->timestamp('expires_at')->nullable(); $table->timestamps(); }); } From 3ea3861e4bab0f39322e8ac2ac9ffd8c6481fbe6 Mon Sep 17 00:00:00 2001 From: Dries Vints Date: Mon, 1 Aug 2022 15:54:38 +0200 Subject: [PATCH 04/33] Update composer.json (#5959) --- composer.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index b140145e9..299b7e8a1 100644 --- a/composer.json +++ b/composer.json @@ -55,7 +55,10 @@ "config": { "optimize-autoloader": true, "preferred-install": "dist", - "sort-packages": true + "sort-packages": true, + "allow-plugins": { + "pestphp/pest-plugin": true + } }, "minimum-stability": "dev", "prefer-stable": true From ba8ed9d65d77ce37ee94bd920ec353a0a8ca8c41 Mon Sep 17 00:00:00 2001 From: driesvints Date: Tue, 2 Aug 2022 15:06:21 +0000 Subject: [PATCH 05/33] Update CHANGELOG --- CHANGELOG.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5c278f3e1..a6e9a6cb5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,13 @@ # Release Notes -## [Unreleased](https://github.com/laravel/laravel/compare/v9.3.1...9.x) +## [Unreleased](https://github.com/laravel/laravel/compare/v9.3.2...9.x) + +## [v9.3.2](https://github.com/laravel/laravel/compare/v9.3.1...v9.3.2) - 2022-08-01 + +### Changed + +- Update Sanctum by @suyar in https://github.com/laravel/laravel/pull/5957 +- Allow Pest plugin in Composer by @driesvints in https://github.com/laravel/laravel/pull/5959 ## [v9.3.1](https://github.com/laravel/laravel/compare/v9.3.0...v9.3.1) - 2022-07-26 From 74dfb6cec4d2c1f6d7e1a1e29e4bc9d610dc7031 Mon Sep 17 00:00:00 2001 From: kichetof Date: Wed, 3 Aug 2022 15:42:10 +0200 Subject: [PATCH 06/33] Validation added `doesnt_end_with` translation (#5962) * Validation added doesnt_end_with translation * fix order --- lang/en/validation.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lang/en/validation.php b/lang/en/validation.php index cef02f589..6d9e6d54d 100644 --- a/lang/en/validation.php +++ b/lang/en/validation.php @@ -43,6 +43,7 @@ return [ 'digits_between' => 'The :attribute must be between :min and :max digits.', 'dimensions' => 'The :attribute has invalid image dimensions.', 'distinct' => 'The :attribute field has a duplicate value.', + 'doesnt_end_with' => 'The :attribute may not end with one of the following: :values.', 'doesnt_start_with' => 'The :attribute may not start with one of the following: :values.', 'email' => 'The :attribute must be a valid email address.', 'ends_with' => 'The :attribute must end with one of the following: :values.', From 4135d5834505e3253e6ff8a68180bf40dfb50112 Mon Sep 17 00:00:00 2001 From: driesvints Date: Tue, 9 Aug 2022 15:36:37 +0000 Subject: [PATCH 07/33] Update CHANGELOG --- CHANGELOG.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a6e9a6cb5..81f8bc530 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,12 @@ # Release Notes -## [Unreleased](https://github.com/laravel/laravel/compare/v9.3.2...9.x) +## [Unreleased](https://github.com/laravel/laravel/compare/v9.3.3...9.x) + +## [v9.3.3](https://github.com/laravel/laravel/compare/v9.3.2...v9.3.3) - 2022-08-03 + +### Changed + +- Validation added `doesnt_end_with` translation by @kichetof in https://github.com/laravel/laravel/pull/5962 ## [v9.3.2](https://github.com/laravel/laravel/compare/v9.3.1...v9.3.2) - 2022-08-01 From dbced6ac8c122280966e807ad93ba63d4798f8bc Mon Sep 17 00:00:00 2001 From: Stephen Rees-Carter Date: Tue, 16 Aug 2022 01:19:56 +1000 Subject: [PATCH 08/33] Add ValidateSignature middleware for ignore params (#5942) * Add ValidateSignature middleware for ignore params * Comment out query parameters by default * Remove leading slash * Update Kernel ValidateSignature middleware path --- app/Http/Kernel.php | 2 +- app/Http/Middleware/ValidateSignature.php | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 app/Http/Middleware/ValidateSignature.php diff --git a/app/Http/Kernel.php b/app/Http/Kernel.php index c3be2544b..007968811 100644 --- a/app/Http/Kernel.php +++ b/app/Http/Kernel.php @@ -60,7 +60,7 @@ class Kernel extends HttpKernel 'can' => \Illuminate\Auth\Middleware\Authorize::class, 'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class, 'password.confirm' => \Illuminate\Auth\Middleware\RequirePassword::class, - 'signed' => \Illuminate\Routing\Middleware\ValidateSignature::class, + 'signed' => \App\Http\Middleware\ValidateSignature::class, 'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class, 'verified' => \Illuminate\Auth\Middleware\EnsureEmailIsVerified::class, ]; diff --git a/app/Http/Middleware/ValidateSignature.php b/app/Http/Middleware/ValidateSignature.php new file mode 100644 index 000000000..2233b20f2 --- /dev/null +++ b/app/Http/Middleware/ValidateSignature.php @@ -0,0 +1,22 @@ + + */ + protected $ignore = [ + //'utm_campaign', + //'utm_source', + //'utm_medium', + //'utm_content', + //'utm_term', + //'fbclid', + ]; +} From 951c9c85019d211601465c93bf04d9e447626a59 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Mon, 15 Aug 2022 10:20:30 -0500 Subject: [PATCH 09/33] wip --- app/Http/Middleware/ValidateSignature.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/Http/Middleware/ValidateSignature.php b/app/Http/Middleware/ValidateSignature.php index 2233b20f2..bbe143254 100644 --- a/app/Http/Middleware/ValidateSignature.php +++ b/app/Http/Middleware/ValidateSignature.php @@ -12,11 +12,11 @@ class ValidateSignature extends Middleware * @var array */ protected $ignore = [ - //'utm_campaign', - //'utm_source', - //'utm_medium', - //'utm_content', - //'utm_term', - //'fbclid', + // 'utm_campaign', + // 'utm_source', + // 'utm_medium', + // 'utm_content', + // 'utm_term', + // 'fbclid', ]; } From 858a3ca66286d18144f8548692e8f4ad59338a77 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Mon, 15 Aug 2022 10:21:08 -0500 Subject: [PATCH 10/33] wip --- app/Http/Middleware/ValidateSignature.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/Http/Middleware/ValidateSignature.php b/app/Http/Middleware/ValidateSignature.php index bbe143254..ee4045d86 100644 --- a/app/Http/Middleware/ValidateSignature.php +++ b/app/Http/Middleware/ValidateSignature.php @@ -12,11 +12,11 @@ class ValidateSignature extends Middleware * @var array */ protected $ignore = [ - // 'utm_campaign', - // 'utm_source', - // 'utm_medium', - // 'utm_content', - // 'utm_term', // 'fbclid', + // 'utm_campaign', + // 'utm_content', + // 'utm_medium', + // 'utm_source', + // 'utm_term', ]; } From 57400e95451524c81fae6945c2b63c534ead4a49 Mon Sep 17 00:00:00 2001 From: driesvints Date: Tue, 16 Aug 2022 15:06:46 +0000 Subject: [PATCH 11/33] Update CHANGELOG --- CHANGELOG.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 81f8bc530..9ef28ac08 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,12 @@ # Release Notes -## [Unreleased](https://github.com/laravel/laravel/compare/v9.3.3...9.x) +## [Unreleased](https://github.com/laravel/laravel/compare/v9.3.4...9.x) + +## [v9.3.4](https://github.com/laravel/laravel/compare/v9.3.3...v9.3.4) - 2022-08-15 + +### Changed + +- Add ValidateSignature middleware for ignore params by @valorin in https://github.com/laravel/laravel/pull/5942 ## [v9.3.3](https://github.com/laravel/laravel/compare/v9.3.2...v9.3.3) - 2022-08-03 From c233957734b1353d8952e07c1dae462f8cddc3d4 Mon Sep 17 00:00:00 2001 From: Masudul Haque Shihab Date: Sat, 20 Aug 2022 23:02:56 +0600 Subject: [PATCH 12/33] add alt to laravel logo image (#5973) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f171ecacc..1378e855c 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -

+

Laravel Logo

Build Status From 7b17f5f32623c2ee75f2bff57a42bb8f180ac779 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Sat, 20 Aug 2022 12:22:43 -0500 Subject: [PATCH 13/33] use short closure --- database/factories/UserFactory.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/database/factories/UserFactory.php b/database/factories/UserFactory.php index 20b35322d..da6feabba 100644 --- a/database/factories/UserFactory.php +++ b/database/factories/UserFactory.php @@ -33,10 +33,8 @@ class UserFactory extends Factory */ public function unverified() { - return $this->state(function (array $attributes) { - return [ - 'email_verified_at' => null, - ]; - }); + return $this->state(fn (array $attributes) => [ + 'email_verified_at' => null, + ]); } } From e2e25f607a894427d6545f611ad3c8d94d022e9d Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Sat, 20 Aug 2022 12:46:21 -0500 Subject: [PATCH 14/33] use except --- app/Http/Middleware/ValidateSignature.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Middleware/ValidateSignature.php b/app/Http/Middleware/ValidateSignature.php index ee4045d86..093bf64af 100644 --- a/app/Http/Middleware/ValidateSignature.php +++ b/app/Http/Middleware/ValidateSignature.php @@ -7,11 +7,11 @@ use Illuminate\Routing\Middleware\ValidateSignature as Middleware; class ValidateSignature extends Middleware { /** - * The names of the parameters that should be ignored. + * The names of the query string parameters that should be ignored. * * @var array */ - protected $ignore = [ + protected $except = [ // 'fbclid', // 'utm_campaign', // 'utm_content', From d18332bdeffbb1f4bf0da620d01b3ff26b349623 Mon Sep 17 00:00:00 2001 From: Dan Harrin Date: Mon, 22 Aug 2022 14:26:36 +0100 Subject: [PATCH 15/33] [9.x] feature: `max_digits` and `min_digits` validation translations (#5975) * feature: `max_digits` and `min_digits` validation translations * Update validation.php Co-authored-by: Taylor Otwell --- lang/en/validation.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lang/en/validation.php b/lang/en/validation.php index 6d9e6d54d..d5490e5cd 100644 --- a/lang/en/validation.php +++ b/lang/en/validation.php @@ -90,6 +90,7 @@ return [ 'numeric' => 'The :attribute must not be greater than :max.', 'string' => 'The :attribute must not be greater than :max characters.', ], + 'max_digits' => 'The :attribute must not have more than :max digits.', 'mimes' => 'The :attribute must be a file of type: :values.', 'mimetypes' => 'The :attribute must be a file of type: :values.', 'min' => [ @@ -98,6 +99,7 @@ return [ 'numeric' => 'The :attribute must be at least :min.', 'string' => 'The :attribute must be at least :min characters.', ], + 'min_digits' => 'The :attribute must have at least :min digits.', 'multiple_of' => 'The :attribute must be a multiple of :value.', 'not_in' => 'The selected :attribute is invalid.', 'not_regex' => 'The :attribute format is invalid.', From e5e46b4293104e95afdceb973c1e660541259177 Mon Sep 17 00:00:00 2001 From: driesvints Date: Tue, 23 Aug 2022 15:04:04 +0000 Subject: [PATCH 16/33] Update CHANGELOG --- CHANGELOG.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9ef28ac08..6398cdaae 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,14 @@ # Release Notes -## [Unreleased](https://github.com/laravel/laravel/compare/v9.3.4...9.x) +## [Unreleased](https://github.com/laravel/laravel/compare/v9.3.5...9.x) + +## [v9.3.5](https://github.com/laravel/laravel/compare/v9.3.4...v9.3.5) - 2022-08-22 + +### Changed + +- `max_digits` and `min_digits` validation translations by @danharrin in https://github.com/laravel/laravel/pull/5975 +- Use short closure by @taylorotwell in https://github.com/laravel/laravel/commit/7b17f5f32623c2ee75f2bff57a42bb8f180ac779 +- Use except by @taylorotwell in https://github.com/laravel/laravel/commit/e2e25f607a894427d6545f611ad3c8d94d022e9d ## [v9.3.4](https://github.com/laravel/laravel/compare/v9.3.3...v9.3.4) - 2022-08-15 From 8438ba5d219d2462f20a3dc0748e0a0842679d2b Mon Sep 17 00:00:00 2001 From: Tim MacDonald Date: Mon, 29 Aug 2022 23:54:18 +1000 Subject: [PATCH 17/33] bump the Vite version (#5977) --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 6267eac1f..6d30231ca 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ }, "devDependencies": { "axios": "^0.27", - "laravel-vite-plugin": "^0.5.0", + "laravel-vite-plugin": "^0.6.0", "lodash": "^4.17.19", "postcss": "^8.1.14", "vite": "^3.0.0" From 64e01753985749fab6626a370b27baa8431e74e6 Mon Sep 17 00:00:00 2001 From: driesvints Date: Tue, 30 Aug 2022 15:23:27 +0000 Subject: [PATCH 18/33] Update CHANGELOG --- CHANGELOG.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6398cdaae..9b7c97440 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,12 @@ # Release Notes -## [Unreleased](https://github.com/laravel/laravel/compare/v9.3.5...9.x) +## [Unreleased](https://github.com/laravel/laravel/compare/v9.3.6...9.x) + +## [v9.3.6](https://github.com/laravel/laravel/compare/v9.3.5...v9.3.6) - 2022-08-29 + +### Changed + +- Bump Vite plugin version by @timacdonald in https://github.com/laravel/laravel/pull/5977 ## [v9.3.5](https://github.com/laravel/laravel/compare/v9.3.4...v9.3.5) - 2022-08-22 From ad219e82aa5cb350bc3828d0515820e48210e300 Mon Sep 17 00:00:00 2001 From: Martin Ro Date: Fri, 2 Sep 2022 22:10:54 +0800 Subject: [PATCH 19/33] Make email unique (#5978) When seeding large amounts of users there is a chance for a duplicate entry SQL error because the email column is unique. https://github.com/laravel/laravel/blob/64e01753985749fab6626a370b27baa8431e74e6/database/migrations/2014_10_12_000000_create_users_table.php#L19 --- database/factories/UserFactory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database/factories/UserFactory.php b/database/factories/UserFactory.php index da6feabba..41f8ae896 100644 --- a/database/factories/UserFactory.php +++ b/database/factories/UserFactory.php @@ -19,7 +19,7 @@ class UserFactory extends Factory { return [ 'name' => fake()->name(), - 'email' => fake()->safeEmail(), + 'email' => fake()->unique()->safeEmail(), 'email_verified_at' => now(), 'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', // password 'remember_token' => Str::random(10), From c1dc4199b83466a3a6a8c70953250b0e2ec70001 Mon Sep 17 00:00:00 2001 From: driesvints Date: Tue, 6 Sep 2022 15:58:31 +0000 Subject: [PATCH 20/33] Update CHANGELOG --- CHANGELOG.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9b7c97440..18d99ed38 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,12 @@ # Release Notes -## [Unreleased](https://github.com/laravel/laravel/compare/v9.3.6...9.x) +## [Unreleased](https://github.com/laravel/laravel/compare/v9.3.7...9.x) + +## [v9.3.7](https://github.com/laravel/laravel/compare/v9.3.6...v9.3.7) - 2022-09-02 + +### Changed + +- Make email unique by @martin-ro in https://github.com/laravel/laravel/pull/5978 ## [v9.3.6](https://github.com/laravel/laravel/compare/v9.3.5...v9.3.6) - 2022-08-29 From 1bec4f82cf934fe49f89ad7a5adc70cbd272637f Mon Sep 17 00:00:00 2001 From: Luis Parrado Date: Thu, 15 Sep 2022 08:15:04 -0500 Subject: [PATCH 21/33] Validation added `required_if_accepted` (#5987) Added translation for new validation [`required_if_accepted`](https://github.com/laravel/framework/pull/44035) rule --- lang/en/validation.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lang/en/validation.php b/lang/en/validation.php index d5490e5cd..5ea01fa77 100644 --- a/lang/en/validation.php +++ b/lang/en/validation.php @@ -120,6 +120,7 @@ return [ 'required' => 'The :attribute field is required.', 'required_array_keys' => 'The :attribute field must contain entries for: :values.', 'required_if' => 'The :attribute field is required when :other is :value.', + 'required_if_accepted' => 'The :attribute field is required when :other is accepted.', 'required_unless' => 'The :attribute field is required unless :other is in :values.', 'required_with' => 'The :attribute field is required when :values is present.', 'required_with_all' => 'The :attribute field is required when :values are present.', From 4a73b5d57e518bd907875e97d5261c8546703e79 Mon Sep 17 00:00:00 2001 From: Julius Kiekbusch Date: Fri, 16 Sep 2022 16:18:22 +0200 Subject: [PATCH 22/33] Add Laravel Bootcamp to Learning Laravel (#5991) * Add Laravel Bootcamp to Learning Laravel * Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 1378e855c..bf0ddd92c 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,8 @@ Laravel is accessible, powerful, and provides tools required for large, robust a Laravel has the most extensive and thorough [documentation](https://laravel.com/docs) and video tutorial library of all modern web application frameworks, making it a breeze to get started with the framework. +You may also try the [Laravel Bootcamp](https://bootcamp.laravel.com), where you will be guided through building a modern Laravel application from scratch. + If you don't feel like reading, [Laracasts](https://laracasts.com) can help. Laracasts contains over 2000 video tutorials on a range of topics including Laravel, modern PHP, unit testing, and JavaScript. Boost your skills by digging into our comprehensive video library. ## Laravel Sponsors From 9725129d74ca465f1b27b20a561de3c133fb6a78 Mon Sep 17 00:00:00 2001 From: Alex Date: Tue, 20 Sep 2022 15:19:54 +0200 Subject: [PATCH 23/33] GitHub Workflows security hardening (#5992) * build: harden update-changelog.yml permissions Signed-off-by: Alex * build: harden tests.yml permissions Signed-off-by: Alex * Update update-changelog.yml * Update tests.yml Co-authored-by: Dries Vints --- .github/workflows/tests.yml | 10 +++++++++- .github/workflows/update-changelog.yml | 4 ++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index b27e503df..695d2b38c 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -1,6 +1,14 @@ name: Tests -on: [push, pull_request] +on: + push: + branches: + - master + - '*.x' + pull_request: + +permissions: + contents: read jobs: tests: diff --git a/.github/workflows/update-changelog.yml b/.github/workflows/update-changelog.yml index 1625bda10..ebda62069 100644 --- a/.github/workflows/update-changelog.yml +++ b/.github/workflows/update-changelog.yml @@ -4,6 +4,10 @@ on: release: types: [released] +permissions: {} + jobs: update: + permissions: + contents: write uses: laravel/.github/.github/workflows/update-changelog.yml@main From ff696f4a6619a398c715dc86142a6bffd15173ca Mon Sep 17 00:00:00 2001 From: driesvints Date: Tue, 20 Sep 2022 14:59:49 +0000 Subject: [PATCH 24/33] Update CHANGELOG --- CHANGELOG.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 18d99ed38..f62f10e75 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,12 @@ # Release Notes -## [Unreleased](https://github.com/laravel/laravel/compare/v9.3.7...9.x) +## [Unreleased](https://github.com/laravel/laravel/compare/v9.3.8...9.x) + +## [v9.3.8](https://github.com/laravel/laravel/compare/v9.3.7...v9.3.8) - 2022-09-20 + +### Changed + +- Validation added `required_if_accepted` by @luisprmat in https://github.com/laravel/laravel/pull/5987 ## [v9.3.7](https://github.com/laravel/laravel/compare/v9.3.6...v9.3.7) - 2022-09-02 From e87bfd60ed4ca30109aa73c4d23250c113fe75ff Mon Sep 17 00:00:00 2001 From: Dries Vints Date: Tue, 20 Sep 2022 17:01:46 +0200 Subject: [PATCH 25/33] Update tests.yml --- .github/workflows/tests.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 695d2b38c..779d387d8 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -6,6 +6,8 @@ on: - master - '*.x' pull_request: + schedule: + - cron: '0 0 * * *' permissions: contents: read From b47c4bc20df5b8adc85c3017014937994fd41448 Mon Sep 17 00:00:00 2001 From: Dries Vints Date: Tue, 4 Oct 2022 15:30:48 +0200 Subject: [PATCH 26/33] PHP 8.2 build (#5999) * PHP 8.2 build * wip * wip --- .github/workflows/tests.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 779d387d8..937a97c3a 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -16,6 +16,17 @@ jobs: tests: runs-on: ubuntu-latest + strategy: + fail-fast: true + matrix: + php: ['8.0', 8.1] + stability: [''] + include: + - php: 8.2 + stability: --ignore-platform-req=php+ + + name: PHP ${{ matrix.php }} + steps: - name: Checkout code uses: actions/checkout@v3 @@ -23,12 +34,12 @@ jobs: - name: Setup PHP uses: shivammathur/setup-php@v2 with: - php-version: 8.1 + php-version: ${{ matrix.php }} extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite coverage: none - name: Install Composer dependencies - run: composer install --prefer-dist --no-interaction + run: composer install ${{ matrix.stability }} --prefer-dist --no-interaction --no-progress - name: Copy environment file run: cp .env.example .env From 2f975d75278186498927f7d798af485789cab556 Mon Sep 17 00:00:00 2001 From: Dries Vints Date: Tue, 4 Oct 2022 15:48:17 +0200 Subject: [PATCH 27/33] Update tests.yml (#6000) --- .github/workflows/tests.yml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 937a97c3a..77662031b 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -19,11 +19,7 @@ jobs: strategy: fail-fast: true matrix: - php: ['8.0', 8.1] - stability: [''] - include: - - php: 8.2 - stability: --ignore-platform-req=php+ + php: ['8.0', 8.1, 8.2] name: PHP ${{ matrix.php }} @@ -39,7 +35,7 @@ jobs: coverage: none - name: Install Composer dependencies - run: composer install ${{ matrix.stability }} --prefer-dist --no-interaction --no-progress + run: composer install --prefer-dist --no-interaction --no-progress - name: Copy environment file run: cp .env.example .env From 5138bc36dbc884098ea68942e805b2267e7a627f Mon Sep 17 00:00:00 2001 From: Tim MacDonald Date: Wed, 5 Oct 2022 13:26:47 +1100 Subject: [PATCH 28/33] update colours (#6002) --- resources/views/welcome.blade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/views/welcome.blade.php b/resources/views/welcome.blade.php index de233926d..0ad6097c2 100644 --- a/resources/views/welcome.blade.php +++ b/resources/views/welcome.blade.php @@ -11,7 +11,7 @@