From 9301304460aa5848b39df5ff172f213fbfddedd8 Mon Sep 17 00:00:00 2001 From: Dries Vints Date: Tue, 8 Feb 2022 18:06:07 +0100 Subject: [PATCH 001/306] Laravel 10 --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 69137367823..0f544de1418 100644 --- a/composer.json +++ b/composer.json @@ -8,7 +8,7 @@ "php": "^8.0", "fruitcake/laravel-cors": "^2.0.5", "guzzlehttp/guzzle": "^7.2", - "laravel/framework": "^9.0", + "laravel/framework": "^10.0", "laravel/sanctum": "^2.14", "laravel/tinker": "^2.7" }, From 13035e08c4166924186baa8368e970a580be3302 Mon Sep 17 00:00:00 2001 From: Dries Vints Date: Tue, 8 Feb 2022 18:07:52 +0100 Subject: [PATCH 002/306] revert 10 for now --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 0f544de1418..69137367823 100644 --- a/composer.json +++ b/composer.json @@ -8,7 +8,7 @@ "php": "^8.0", "fruitcake/laravel-cors": "^2.0.5", "guzzlehttp/guzzle": "^7.2", - "laravel/framework": "^10.0", + "laravel/framework": "^9.0", "laravel/sanctum": "^2.14", "laravel/tinker": "^2.7" }, From 5a374ae636805ca320bc64649e75b6eb92b98483 Mon Sep 17 00:00:00 2001 From: Dries Vints Date: Fri, 11 Feb 2022 15:33:57 +0100 Subject: [PATCH 003/306] [10.x] Prep Laravel 10 (#5805) * Prep Laravel 10 * Update composer.json * Update Kernel.php * Update composer.json * Update composer.json --- composer.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/composer.json b/composer.json index 69137367823..04268e2293f 100644 --- a/composer.json +++ b/composer.json @@ -6,19 +6,19 @@ "license": "MIT", "require": { "php": "^8.0", - "fruitcake/laravel-cors": "^2.0.5", "guzzlehttp/guzzle": "^7.2", - "laravel/framework": "^9.0", - "laravel/sanctum": "^2.14", - "laravel/tinker": "^2.7" + "fruitcake/laravel-cors": "dev-develop", + "laravel/framework": "^10.0", + "laravel/sanctum": "dev-develop", + "laravel/tinker": "dev-develop" }, "require-dev": { "fakerphp/faker": "^1.9.1", - "laravel/sail": "^1.0.1", + "laravel/sail": "dev-develop", "mockery/mockery": "^1.4.4", "nunomaduro/collision": "^6.1", "phpunit/phpunit": "^9.5.10", - "spatie/laravel-ignition": "^1.0" + "spatie/laravel-ignition": "dev-l10" }, "autoload": { "psr-4": { From 004b1319f46620aa23e15615c3238864fba2d11a Mon Sep 17 00:00:00 2001 From: Graham Campbell Date: Sat, 26 Mar 2022 15:06:24 +0000 Subject: [PATCH 004/306] Drop PHP 8.0 (#5854) --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index e07d826ffce..d319f6965b0 100644 --- a/composer.json +++ b/composer.json @@ -5,7 +5,7 @@ "keywords": ["framework", "laravel"], "license": "MIT", "require": { - "php": "^8.0.2", + "php": "^8.1", "guzzlehttp/guzzle": "^7.2", "fruitcake/laravel-cors": "dev-develop", "laravel/framework": "^10.0", From 551bbca3225970e06ca41b107b879f064f786e8a Mon Sep 17 00:00:00 2001 From: Dries Vints Date: Mon, 25 Jul 2022 11:06:51 +0200 Subject: [PATCH 005/306] wip --- CHANGELOG.md | 132 ++------------------------------------------------- 1 file changed, 3 insertions(+), 129 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3a94d1db454..9959e263957 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,133 +1,7 @@ # Release Notes -## [Unreleased](https://github.com/laravel/laravel/compare/v9.3.0...9.x) +## [Unreleased](https://github.com/laravel/laravel/compare/v9.3.0...master) -## [v9.3.0](https://github.com/laravel/laravel/compare/v9.2.1...v9.3.0) - 2022-07-20 +## [v10.0.0 (2022-02-07)](https://github.com/laravel/laravel/compare/v9.3.0...master) -### Added - -- Uses `laravel/pint` for styling by @nunomaduro in https://github.com/laravel/laravel/pull/5945 - -### Changed - -- Bump axios version by @ankurk91 in https://github.com/laravel/laravel/pull/5946 -- Vite 3 support by @timacdonald in https://github.com/laravel/laravel/pull/5944 - -## [v9.2.1](https://github.com/laravel/laravel/compare/v9.2.0...v9.2.1) - 2022-07-13 - -### Changed - -- Add auth.json to skeleton by @driesvints in https://github.com/laravel/laravel/pull/5924 -- Update `bootstrap.js` by @irsyadadl in https://github.com/laravel/laravel/pull/5929 -- Add default reloading to skeleton by @timacdonald in https://github.com/laravel/laravel/pull/5927 -- Update to the latest version of laravel-vite-plugin by @jessarcher in https://github.com/laravel/laravel/pull/5943 - -## [v9.2.0](https://github.com/laravel/laravel/compare/v9.1.10...v9.2.0) - 2022-06-28 - -### Added - -- Vite by @jessarcher in https://github.com/laravel/laravel/pull/5904 -- Added support for easy development configuration in bootstrap.js by @rennokki in https://github.com/laravel/laravel/pull/5900 - -### Changed - -- Sorted entries in the `en` validation translations file by @FaridAghili in https://github.com/laravel/laravel/pull/5899 - -## [v9.1.10](https://github.com/laravel/laravel/compare/v9.1.9...v9.1.10) - 2022-06-07 - -### Changed - -- Add language line by @taylorotwell in https://github.com/laravel/laravel/commit/b084aacc5ad105e39c2b058e9523e73655be8d1f -- Improve Pusher configuration for easy development by @oanhnn in https://github.com/laravel/laravel/pull/5897 - -## [v9.1.9](https://github.com/laravel/laravel/compare/v9.1.8...v9.1.9) - 2022-05-28 - -### Changed - -- Switch to ESM imports by @jessarcher in https://github.com/laravel/laravel/pull/5895 - -## [v9.1.8](https://github.com/laravel/laravel/compare/v9.1.7...v9.1.8) - 2022-05-05 - -### Changed - -- Add local_domain option to smtp configuration by @bintzandt in https://github.com/laravel/laravel/pull/5877 -- Add specific test user in seeder by @driesvints in https://github.com/laravel/laravel/pull/5879 - -## [v9.1.7](https://github.com/laravel/laravel/compare/v9.1.6...v9.1.7) - 2022-05-03 - -### Changed - -- Deprecation log stack trace option by @driesvints in https://github.com/laravel/laravel/pull/5874 - -## [v9.1.6](https://github.com/laravel/laravel/compare/v9.1.5...v9.1.6) - 2022-04-20 - -### Changed - -- Move password lines into main translation file by @taylorotwell in https://github.com/laravel/laravel/commit/db0d052ece1c17c506633f4c9f5604b65e1cc3a4 -- Add missing maintenance to config by @ibrunotome in https://github.com/laravel/laravel/pull/5868 - -## [v9.1.5](https://github.com/laravel/laravel/compare/v9.1.4...v9.1.5) - 2022-04-12 - -### Changed - -- Rearrange route methods by @osbre in https://github.com/laravel/laravel/pull/5862 -- Add levels to handler by @taylorotwell in https://github.com/laravel/laravel/commit/a507e1424339633ce423729ec0ac49b99f0e57d7 - -## [v9.1.4](https://github.com/laravel/laravel/compare/v9.1.3...v9.1.4) - 2022-03-29 - -### Changed - -- Add encryption configuration by @taylorotwell in https://github.com/laravel/laravel/commit/f7b982ebdf7bd31eda9f05f901bd92ed32446156 - -## [v9.1.3](https://github.com/laravel/laravel/compare/v9.1.2...v9.1.3) - 2022-03-29 - -### Changed - -- Add an example to the class aliases by @nshiro in https://github.com/laravel/laravel/pull/5846 -- Add username in config to use with phpredis + ACL by @neoteknic in https://github.com/laravel/laravel/pull/5851 -- Remove "password" from validation lang by @mnastalski in https://github.com/laravel/laravel/pull/5856 -- Make authenticate session a route middleware by @taylorotwell in https://github.com/laravel/laravel/pull/5842 - -## [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 - -### 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 - -### 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 - -### 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) - -Laravel 9 includes a variety of changes to the application skeleton. Please consult the diff to see what's new. +Laravel 10 includes a variety of changes to the application skeleton. Please consult the diff to see what's new. From 720f7572dea5a9a7286668c27ac4efd2995cda5e Mon Sep 17 00:00:00 2001 From: Dries Vints Date: Tue, 25 Oct 2022 12:28:38 +0200 Subject: [PATCH 006/306] Remove 8.0 build --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 77662031b4c..8e6e9cd5be5 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -19,7 +19,7 @@ jobs: strategy: fail-fast: true matrix: - php: ['8.0', 8.1, 8.2] + php: [8.1, 8.2] name: PHP ${{ matrix.php }} From 21b826f3d3c0ba51ee806dc2d8d5b73de6b81422 Mon Sep 17 00:00:00 2001 From: Wendell Adriel Date: Fri, 30 Dec 2022 01:32:36 +0000 Subject: [PATCH 007/306] Updated git configuration to use LF line endings by default (#6061) --- .gitattributes | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitattributes b/.gitattributes index 7dbbf41a4b6..fcb21d396d6 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,4 +1,4 @@ -* text=auto +* text=auto eol=lf *.blade.php diff=html *.css diff=css From 55af5469c31a2e251279952dc6c2990ac98b7f90 Mon Sep 17 00:00:00 2001 From: Nuno Maduro Date: Tue, 3 Jan 2023 09:35:24 +0000 Subject: [PATCH 008/306] =?UTF-8?q?[10.x]=20Uses=20PHP=20Native=20Type=20D?= =?UTF-8?q?eclarations=20=F0=9F=90=98=20(#6010)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Adds basic typing around method's arguments and return types * Adds missing `closure` type * Adds typing on tests * Fixes `RedirectIfAuthenticated` * Fixes `Authenticate` * Improves `RedirectIfAuthenticated` types * Fixes user factory `unverified` return type --- app/Console/Kernel.php | 9 ++------- app/Exceptions/Handler.php | 4 +--- app/Http/Middleware/Authenticate.php | 10 +++------- app/Http/Middleware/RedirectIfAuthenticated.php | 8 +++----- app/Http/Middleware/TrustHosts.php | 2 +- app/Providers/AppServiceProvider.php | 8 ++------ app/Providers/AuthServiceProvider.php | 4 +--- app/Providers/BroadcastServiceProvider.php | 4 +--- app/Providers/EventServiceProvider.php | 8 ++------ app/Providers/RouteServiceProvider.php | 8 ++------ database/factories/UserFactory.php | 6 +++--- .../2014_10_12_000000_create_users_table.php | 8 ++------ .../2014_10_12_100000_create_password_resets_table.php | 8 ++------ .../2019_08_19_000000_create_failed_jobs_table.php | 8 ++------ ...2_14_000001_create_personal_access_tokens_table.php | 8 ++------ database/seeders/DatabaseSeeder.php | 4 +--- tests/CreatesApplication.php | 5 ++--- tests/Feature/ExampleTest.php | 4 +--- tests/Unit/ExampleTest.php | 4 +--- 19 files changed, 34 insertions(+), 86 deletions(-) diff --git a/app/Console/Kernel.php b/app/Console/Kernel.php index d8bc1d29f0c..e6b9960ec1b 100644 --- a/app/Console/Kernel.php +++ b/app/Console/Kernel.php @@ -9,21 +9,16 @@ class Kernel extends ConsoleKernel { /** * Define the application's command schedule. - * - * @param \Illuminate\Console\Scheduling\Schedule $schedule - * @return void */ - protected function schedule(Schedule $schedule) + protected function schedule(Schedule $schedule): void { // $schedule->command('inspire')->hourly(); } /** * Register the commands for the application. - * - * @return void */ - protected function commands() + protected function commands(): void { $this->load(__DIR__.'/Commands'); diff --git a/app/Exceptions/Handler.php b/app/Exceptions/Handler.php index 82a37e40081..b1c262c6d55 100644 --- a/app/Exceptions/Handler.php +++ b/app/Exceptions/Handler.php @@ -38,10 +38,8 @@ class Handler extends ExceptionHandler /** * Register the exception handling callbacks for the application. - * - * @return void */ - public function register() + public function register(): void { $this->reportable(function (Throwable $e) { // diff --git a/app/Http/Middleware/Authenticate.php b/app/Http/Middleware/Authenticate.php index 704089a7fe7..fde60d6fd6b 100644 --- a/app/Http/Middleware/Authenticate.php +++ b/app/Http/Middleware/Authenticate.php @@ -3,19 +3,15 @@ namespace App\Http\Middleware; use Illuminate\Auth\Middleware\Authenticate as Middleware; +use Illuminate\Http\Request; class Authenticate extends Middleware { /** * Get the path the user should be redirected to when they are not authenticated. - * - * @param \Illuminate\Http\Request $request - * @return string|null */ - protected function redirectTo($request) + protected function redirectTo(Request $request): string|null { - if (! $request->expectsJson()) { - return route('login'); - } + return $request->expectsJson() ? null : route('login'); } } diff --git a/app/Http/Middleware/RedirectIfAuthenticated.php b/app/Http/Middleware/RedirectIfAuthenticated.php index a2813a06489..afc78c4e539 100644 --- a/app/Http/Middleware/RedirectIfAuthenticated.php +++ b/app/Http/Middleware/RedirectIfAuthenticated.php @@ -6,18 +6,16 @@ use Closure; use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; +use Symfony\Component\HttpFoundation\Response; class RedirectIfAuthenticated { /** * Handle an incoming request. * - * @param \Illuminate\Http\Request $request - * @param \Closure(\Illuminate\Http\Request): (\Illuminate\Http\Response|\Illuminate\Http\RedirectResponse) $next - * @param string|null ...$guards - * @return \Illuminate\Http\Response|\Illuminate\Http\RedirectResponse + * @param \Closure(\Illuminate\Http\Request): (\Symfony\Component\HttpFoundation\Response) $next */ - public function handle(Request $request, Closure $next, ...$guards) + public function handle(Request $request, Closure $next, string ...$guards): Response { $guards = empty($guards) ? [null] : $guards; diff --git a/app/Http/Middleware/TrustHosts.php b/app/Http/Middleware/TrustHosts.php index 7186414c657..c9c58bddcea 100644 --- a/app/Http/Middleware/TrustHosts.php +++ b/app/Http/Middleware/TrustHosts.php @@ -11,7 +11,7 @@ class TrustHosts extends Middleware * * @return array */ - public function hosts() + public function hosts(): array { return [ $this->allSubdomainsOfApplicationUrl(), diff --git a/app/Providers/AppServiceProvider.php b/app/Providers/AppServiceProvider.php index ee8ca5bcd8f..452e6b65b7a 100644 --- a/app/Providers/AppServiceProvider.php +++ b/app/Providers/AppServiceProvider.php @@ -8,20 +8,16 @@ class AppServiceProvider extends ServiceProvider { /** * Register any application services. - * - * @return void */ - public function register() + public function register(): void { // } /** * Bootstrap any application services. - * - * @return void */ - public function boot() + public function boot(): void { // } diff --git a/app/Providers/AuthServiceProvider.php b/app/Providers/AuthServiceProvider.php index 33b83f5696a..5522aa2fce0 100644 --- a/app/Providers/AuthServiceProvider.php +++ b/app/Providers/AuthServiceProvider.php @@ -18,10 +18,8 @@ class AuthServiceProvider extends ServiceProvider /** * Register any authentication / authorization services. - * - * @return void */ - public function boot() + public function boot(): void { $this->registerPolicies(); diff --git a/app/Providers/BroadcastServiceProvider.php b/app/Providers/BroadcastServiceProvider.php index 395c518bc47..2be04f5d9da 100644 --- a/app/Providers/BroadcastServiceProvider.php +++ b/app/Providers/BroadcastServiceProvider.php @@ -9,10 +9,8 @@ class BroadcastServiceProvider extends ServiceProvider { /** * Bootstrap any application services. - * - * @return void */ - public function boot() + public function boot(): void { Broadcast::routes(); diff --git a/app/Providers/EventServiceProvider.php b/app/Providers/EventServiceProvider.php index ab8b2cf77bb..2d65aac0ef0 100644 --- a/app/Providers/EventServiceProvider.php +++ b/app/Providers/EventServiceProvider.php @@ -22,20 +22,16 @@ class EventServiceProvider extends ServiceProvider /** * Register any events for your application. - * - * @return void */ - public function boot() + public function boot(): void { // } /** * Determine if events and listeners should be automatically discovered. - * - * @return bool */ - public function shouldDiscoverEvents() + public function shouldDiscoverEvents(): bool { return false; } diff --git a/app/Providers/RouteServiceProvider.php b/app/Providers/RouteServiceProvider.php index ea87f2e57d0..bc4910996c7 100644 --- a/app/Providers/RouteServiceProvider.php +++ b/app/Providers/RouteServiceProvider.php @@ -21,10 +21,8 @@ class RouteServiceProvider extends ServiceProvider /** * Define your route model bindings, pattern filters, and other route configuration. - * - * @return void */ - public function boot() + public function boot(): void { $this->configureRateLimiting(); @@ -40,10 +38,8 @@ public function boot() /** * Configure the rate limiters for the application. - * - * @return void */ - protected function configureRateLimiting() + protected function configureRateLimiting(): void { RateLimiter::for('api', function (Request $request) { return Limit::perMinute(60)->by($request->user()?->id ?: $request->ip()); diff --git a/database/factories/UserFactory.php b/database/factories/UserFactory.php index 41f8ae896be..d4e88356126 100644 --- a/database/factories/UserFactory.php +++ b/database/factories/UserFactory.php @@ -15,7 +15,7 @@ class UserFactory extends Factory * * @return array */ - public function definition() + public function definition(): array { return [ 'name' => fake()->name(), @@ -29,9 +29,9 @@ public function definition() /** * Indicate that the model's email address should be unverified. * - * @return static + * @return $this */ - public function unverified() + public function unverified(): static { return $this->state(fn (array $attributes) => [ 'email_verified_at' => null, diff --git a/database/migrations/2014_10_12_000000_create_users_table.php b/database/migrations/2014_10_12_000000_create_users_table.php index cf6b77661eb..444fafb7f53 100644 --- a/database/migrations/2014_10_12_000000_create_users_table.php +++ b/database/migrations/2014_10_12_000000_create_users_table.php @@ -8,10 +8,8 @@ { /** * Run the migrations. - * - * @return void */ - public function up() + public function up(): void { Schema::create('users', function (Blueprint $table) { $table->id(); @@ -26,10 +24,8 @@ public function up() /** * Reverse the migrations. - * - * @return void */ - public function down() + public function down(): void { Schema::dropIfExists('users'); } diff --git a/database/migrations/2014_10_12_100000_create_password_resets_table.php b/database/migrations/2014_10_12_100000_create_password_resets_table.php index fcacb80b3e1..4f42fe6909e 100644 --- a/database/migrations/2014_10_12_100000_create_password_resets_table.php +++ b/database/migrations/2014_10_12_100000_create_password_resets_table.php @@ -8,10 +8,8 @@ { /** * Run the migrations. - * - * @return void */ - public function up() + public function up(): void { Schema::create('password_resets', function (Blueprint $table) { $table->string('email')->index(); @@ -22,10 +20,8 @@ public function up() /** * Reverse the migrations. - * - * @return void */ - public function down() + public function down(): void { Schema::dropIfExists('password_resets'); } diff --git a/database/migrations/2019_08_19_000000_create_failed_jobs_table.php b/database/migrations/2019_08_19_000000_create_failed_jobs_table.php index 17191986b47..249da8171ac 100644 --- a/database/migrations/2019_08_19_000000_create_failed_jobs_table.php +++ b/database/migrations/2019_08_19_000000_create_failed_jobs_table.php @@ -8,10 +8,8 @@ { /** * Run the migrations. - * - * @return void */ - public function up() + public function up(): void { Schema::create('failed_jobs', function (Blueprint $table) { $table->id(); @@ -26,10 +24,8 @@ public function up() /** * Reverse the migrations. - * - * @return void */ - public function down() + public function down(): void { Schema::dropIfExists('failed_jobs'); } 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 6c81fd229d9..e828ad8189e 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 @@ -8,10 +8,8 @@ { /** * Run the migrations. - * - * @return void */ - public function up() + public function up(): void { Schema::create('personal_access_tokens', function (Blueprint $table) { $table->id(); @@ -27,10 +25,8 @@ public function up() /** * Reverse the migrations. - * - * @return void */ - public function down() + public function down(): void { Schema::dropIfExists('personal_access_tokens'); } diff --git a/database/seeders/DatabaseSeeder.php b/database/seeders/DatabaseSeeder.php index 76d96dc7f5b..a9f4519fce3 100644 --- a/database/seeders/DatabaseSeeder.php +++ b/database/seeders/DatabaseSeeder.php @@ -9,10 +9,8 @@ class DatabaseSeeder extends Seeder { /** * Seed the application's database. - * - * @return void */ - public function run() + public function run(): void { // \App\Models\User::factory(10)->create(); diff --git a/tests/CreatesApplication.php b/tests/CreatesApplication.php index 547152f6a93..cc68301129c 100644 --- a/tests/CreatesApplication.php +++ b/tests/CreatesApplication.php @@ -3,15 +3,14 @@ namespace Tests; use Illuminate\Contracts\Console\Kernel; +use Illuminate\Foundation\Application; trait CreatesApplication { /** * Creates the application. - * - * @return \Illuminate\Foundation\Application */ - public function createApplication() + public function createApplication(): Application { $app = require __DIR__.'/../bootstrap/app.php'; diff --git a/tests/Feature/ExampleTest.php b/tests/Feature/ExampleTest.php index 1eafba61520..8364a84e2b7 100644 --- a/tests/Feature/ExampleTest.php +++ b/tests/Feature/ExampleTest.php @@ -9,10 +9,8 @@ class ExampleTest extends TestCase { /** * A basic test example. - * - * @return void */ - public function test_the_application_returns_a_successful_response() + public function test_the_application_returns_a_successful_response(): void { $response = $this->get('/'); diff --git a/tests/Unit/ExampleTest.php b/tests/Unit/ExampleTest.php index e5c5fef7a07..5773b0ceb77 100644 --- a/tests/Unit/ExampleTest.php +++ b/tests/Unit/ExampleTest.php @@ -8,10 +8,8 @@ class ExampleTest extends TestCase { /** * A basic test example. - * - * @return void */ - public function test_that_true_is_true() + public function test_that_true_is_true(): void { $this->assertTrue(true); } From 28894568fd5a0bb847c121ea97e0d9271d3fb804 Mon Sep 17 00:00:00 2001 From: Dries Vints Date: Fri, 6 Jan 2023 14:35:53 +0100 Subject: [PATCH 009/306] Update composer.json --- composer.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/composer.json b/composer.json index 5f31316cd61..ad722da318a 100644 --- a/composer.json +++ b/composer.json @@ -48,6 +48,9 @@ ] }, "extra": { + "branch-alias": { + "dev-master": "10.x-dev" + }, "laravel": { "dont-discover": [] } From af241e157245de5013ea97aabdf3b5aa789bf01a Mon Sep 17 00:00:00 2001 From: Dries Vints Date: Tue, 10 Jan 2023 19:06:40 +0100 Subject: [PATCH 010/306] Update composer.json --- composer.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index ad722da318a..bd6c2ec9a2e 100644 --- a/composer.json +++ b/composer.json @@ -8,13 +8,13 @@ "php": "^8.1", "guzzlehttp/guzzle": "^7.2", "laravel/framework": "^10.0", - "laravel/sanctum": "dev-develop", - "laravel/tinker": "dev-develop" + "laravel/sanctum": "^3.2", + "laravel/tinker": "^2.8" }, "require-dev": { "fakerphp/faker": "^1.9.1", "laravel/pint": "^1.0", - "laravel/sail": "dev-develop", + "laravel/sail": "^1.18", "mockery/mockery": "^1.4.4", "nunomaduro/collision": "^6.1", "phpunit/phpunit": "^9.5.10", From 1d0dad93867a41774f56a8fcba7c11d8fb4849a8 Mon Sep 17 00:00:00 2001 From: Dries Vints Date: Fri, 13 Jan 2023 15:01:10 +0100 Subject: [PATCH 011/306] Use dev stability for master --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 1f884d90ac2..bd6c2ec9a2e 100644 --- a/composer.json +++ b/composer.json @@ -63,6 +63,6 @@ "pestphp/pest-plugin": true } }, - "minimum-stability": "stable", + "minimum-stability": "dev", "prefer-stable": true } From a55085b856b963988cf530e19899e6a4bb7eff0b Mon Sep 17 00:00:00 2001 From: Nuno Maduro Date: Mon, 23 Jan 2023 18:25:20 +0000 Subject: [PATCH 012/306] Uses Laravel Ignition `v2.x` (#6079) --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index bd6c2ec9a2e..67fab0f258e 100644 --- a/composer.json +++ b/composer.json @@ -18,7 +18,7 @@ "mockery/mockery": "^1.4.4", "nunomaduro/collision": "^6.1", "phpunit/phpunit": "^9.5.10", - "spatie/laravel-ignition": "dev-l10" + "spatie/laravel-ignition": "^2.0" }, "autoload": { "psr-4": { From cfe893dbf6c9bb8e78e6f7c82dcabb99dede30fe Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Wed, 25 Jan 2023 18:07:48 +0000 Subject: [PATCH 013/306] adjust wording --- routes/api.php | 4 ++-- routes/web.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/routes/api.php b/routes/api.php index eb6fa48c25d..889937e11a5 100644 --- a/routes/api.php +++ b/routes/api.php @@ -9,8 +9,8 @@ |-------------------------------------------------------------------------- | | Here is where you can register API routes for your application. These -| routes are loaded by the RouteServiceProvider within a group which -| is assigned the "api" middleware group. Enjoy building your API! +| routes are loaded by the RouteServiceProvider and all of them will +| be assigned to the "api" middleware group. Make something great! | */ diff --git a/routes/web.php b/routes/web.php index b13039731c4..d259f33ea86 100644 --- a/routes/web.php +++ b/routes/web.php @@ -8,8 +8,8 @@ |-------------------------------------------------------------------------- | | Here is where you can register web routes for your application. These -| routes are loaded by the RouteServiceProvider within a group which -| contains the "web" middleware group. Now create something great! +| routes are loaded by the RouteServiceProvider and all of them will +| be assigned to the "web" middleware group. Make something great! | */ From f62d260c765251427032c1a97aa9d26111ef1178 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Wed, 25 Jan 2023 18:08:59 +0000 Subject: [PATCH 014/306] remove dispatches job trait --- app/Http/Controllers/Controller.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/Http/Controllers/Controller.php b/app/Http/Controllers/Controller.php index a0a2a8a34a6..77ec359ab4d 100644 --- a/app/Http/Controllers/Controller.php +++ b/app/Http/Controllers/Controller.php @@ -3,11 +3,10 @@ namespace App\Http\Controllers; use Illuminate\Foundation\Auth\Access\AuthorizesRequests; -use Illuminate\Foundation\Bus\DispatchesJobs; use Illuminate\Foundation\Validation\ValidatesRequests; use Illuminate\Routing\Controller as BaseController; class Controller extends BaseController { - use AuthorizesRequests, DispatchesJobs, ValidatesRequests; + use AuthorizesRequests, ValidatesRequests; } From de868f0fc7d17331fb064b87c8c8263a09207e3b Mon Sep 17 00:00:00 2001 From: Jason McCreary Date: Fri, 27 Jan 2023 06:53:58 -0500 Subject: [PATCH 015/306] Use nullable typing (#6084) --- app/Http/Middleware/Authenticate.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Middleware/Authenticate.php b/app/Http/Middleware/Authenticate.php index fde60d6fd6b..d4ef6447a9c 100644 --- a/app/Http/Middleware/Authenticate.php +++ b/app/Http/Middleware/Authenticate.php @@ -10,7 +10,7 @@ class Authenticate extends Middleware /** * Get the path the user should be redirected to when they are not authenticated. */ - protected function redirectTo(Request $request): string|null + protected function redirectTo(Request $request): ?string { return $request->expectsJson() ? null : route('login'); } From edcbe6de7c3f17070bf0ccaa2e2b785158ae5ceb Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Fri, 27 Jan 2023 14:08:16 +0000 Subject: [PATCH 016/306] rename property for clarity --- app/Http/Kernel.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/Http/Kernel.php b/app/Http/Kernel.php index 0079688113e..c34cdcf1158 100644 --- a/app/Http/Kernel.php +++ b/app/Http/Kernel.php @@ -40,19 +40,19 @@ class Kernel extends HttpKernel 'api' => [ // \Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful::class, - 'throttle:api', + \Illuminate\Routing\Middleware\ThrottleRequests::class.':api', \Illuminate\Routing\Middleware\SubstituteBindings::class, ], ]; /** - * The application's route middleware. + * The application's middleware aliases. * - * These middleware may be assigned to groups or used individually. + * Aliases may be used to conveniently assign middleware to routes and groups. * * @var array */ - protected $routeMiddleware = [ + protected $middlewareAliases = [ 'auth' => \App\Http\Middleware\Authenticate::class, 'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class, 'auth.session' => \Illuminate\Session\Middleware\AuthenticateSession::class, From a28ad2966df4488c873f793c6e5b03cbea547d1e Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Mon, 30 Jan 2023 16:53:14 -0600 Subject: [PATCH 017/306] rename password reset tokens table in skeleton --- config/auth.php | 2 +- ... 2014_10_12_100000_create_password_reset_tokens_table.php} | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) rename database/migrations/{2014_10_12_100000_create_password_resets_table.php => 2014_10_12_100000_create_password_reset_tokens_table.php} (79%) diff --git a/config/auth.php b/config/auth.php index d8c6cee7c19..aa6b78025bc 100644 --- a/config/auth.php +++ b/config/auth.php @@ -89,7 +89,7 @@ 'passwords' => [ 'users' => [ 'provider' => 'users', - 'table' => 'password_resets', + 'table' => 'password_reset_tokens', 'expire' => 60, 'throttle' => 60, ], diff --git a/database/migrations/2014_10_12_100000_create_password_resets_table.php b/database/migrations/2014_10_12_100000_create_password_reset_tokens_table.php similarity index 79% rename from database/migrations/2014_10_12_100000_create_password_resets_table.php rename to database/migrations/2014_10_12_100000_create_password_reset_tokens_table.php index e207aaa28ae..81a7229b085 100644 --- a/database/migrations/2014_10_12_100000_create_password_resets_table.php +++ b/database/migrations/2014_10_12_100000_create_password_reset_tokens_table.php @@ -11,7 +11,7 @@ */ public function up(): void { - Schema::create('password_resets', function (Blueprint $table) { + Schema::create('password_reset_tokens', function (Blueprint $table) { $table->string('email')->primary(); $table->string('token'); $table->timestamp('created_at')->nullable(); @@ -23,6 +23,6 @@ public function up(): void */ public function down(): void { - Schema::dropIfExists('password_resets'); + Schema::dropIfExists('password_reset_tokens'); } }; From e0a5b0efbaf51e79158aaaa46683ced815684551 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Tue, 31 Jan 2023 09:00:17 -0600 Subject: [PATCH 018/306] document new options --- config/mail.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/config/mail.php b/config/mail.php index 534395a369b..049052ff58c 100644 --- a/config/mail.php +++ b/config/mail.php @@ -51,10 +51,16 @@ 'mailgun' => [ 'transport' => 'mailgun', + // 'client' => [ + // 'timeout' => 5, + // ], ], 'postmark' => [ 'transport' => 'postmark', + // 'client' => [ + // 'timeout' => 5, + // ], ], 'sendmail' => [ From 5eb99fcae610c3c161e32d4857253763efb410a4 Mon Sep 17 00:00:00 2001 From: Tim MacDonald Date: Tue, 7 Feb 2023 02:07:12 +1100 Subject: [PATCH 019/306] sets ASSET_URL to use / as the default value (#6089) --- config/app.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/app.php b/config/app.php index ef76a7ed6ae..bca112fb13f 100644 --- a/config/app.php +++ b/config/app.php @@ -56,7 +56,7 @@ 'url' => env('APP_URL', 'http://localhost'), - 'asset_url' => env('ASSET_URL'), + 'asset_url' => env('ASSET_URL', '/'), /* |-------------------------------------------------------------------------- From 99b1d97321c103c81d234598ffbbd50cb5d99c77 Mon Sep 17 00:00:00 2001 From: Nuno Maduro Date: Tue, 7 Feb 2023 15:26:27 +0000 Subject: [PATCH 020/306] [10.x] Adds PHPUnit 10 support (#6052) * Adds PHPUnit 10 support * Reverts `noNamespaceSchemaLocation` * Improves PHPUnit configuration file --- .gitignore | 2 +- composer.json | 4 ++-- phpunit.xml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index f0d10af603e..e6bbd7aea18 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +/.phpunit.cache /node_modules /public/build /public/hot @@ -7,7 +8,6 @@ .env .env.backup .env.production -.phpunit.result.cache Homestead.json Homestead.yaml auth.json diff --git a/composer.json b/composer.json index 67fab0f258e..08086a8538d 100644 --- a/composer.json +++ b/composer.json @@ -16,8 +16,8 @@ "laravel/pint": "^1.0", "laravel/sail": "^1.18", "mockery/mockery": "^1.4.4", - "nunomaduro/collision": "^6.1", - "phpunit/phpunit": "^9.5.10", + "nunomaduro/collision": "^7.0", + "phpunit/phpunit": "^10.0", "spatie/laravel-ignition": "^2.0" }, "autoload": { diff --git a/phpunit.xml b/phpunit.xml index 2ac86a18587..eb13aff1970 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -12,7 +12,7 @@ ./tests/Feature - + ./app From 842f511ec774a41ec13f08192d572693de4f9724 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Tue, 7 Feb 2023 20:20:08 -0600 Subject: [PATCH 021/306] remove lang directory by default --- lang/en/auth.php | 20 ----- lang/en/pagination.php | 19 ----- lang/en/passwords.php | 22 ----- lang/en/validation.php | 184 ----------------------------------------- 4 files changed, 245 deletions(-) delete mode 100644 lang/en/auth.php delete mode 100644 lang/en/pagination.php delete mode 100644 lang/en/passwords.php delete mode 100644 lang/en/validation.php diff --git a/lang/en/auth.php b/lang/en/auth.php deleted file mode 100644 index 6598e2c0607..00000000000 --- a/lang/en/auth.php +++ /dev/null @@ -1,20 +0,0 @@ - 'These credentials do not match our records.', - 'password' => 'The provided password is incorrect.', - 'throttle' => 'Too many login attempts. Please try again in :seconds seconds.', - -]; diff --git a/lang/en/pagination.php b/lang/en/pagination.php deleted file mode 100644 index d4814118778..00000000000 --- a/lang/en/pagination.php +++ /dev/null @@ -1,19 +0,0 @@ - '« Previous', - 'next' => 'Next »', - -]; diff --git a/lang/en/passwords.php b/lang/en/passwords.php deleted file mode 100644 index 2345a56b5a6..00000000000 --- a/lang/en/passwords.php +++ /dev/null @@ -1,22 +0,0 @@ - 'Your password has been reset!', - 'sent' => 'We have emailed your password reset link!', - 'throttled' => 'Please wait before retrying.', - 'token' => 'This password reset token is invalid.', - 'user' => "We can't find a user with that email address.", - -]; diff --git a/lang/en/validation.php b/lang/en/validation.php deleted file mode 100644 index 70407c9d974..00000000000 --- a/lang/en/validation.php +++ /dev/null @@ -1,184 +0,0 @@ - 'The :attribute must be accepted.', - 'accepted_if' => 'The :attribute must be accepted when :other is :value.', - 'active_url' => 'The :attribute is not a valid URL.', - 'after' => 'The :attribute must be a date after :date.', - 'after_or_equal' => 'The :attribute must be a date after or equal to :date.', - 'alpha' => 'The :attribute must only contain letters.', - 'alpha_dash' => 'The :attribute must only contain letters, numbers, dashes and underscores.', - 'alpha_num' => 'The :attribute must only contain letters and numbers.', - 'array' => 'The :attribute must be an array.', - 'ascii' => 'The :attribute must only contain single-byte alphanumeric characters and symbols.', - 'before' => 'The :attribute must be a date before :date.', - 'before_or_equal' => 'The :attribute must be a date before or equal to :date.', - 'between' => [ - '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.', - 'current_password' => 'The password is incorrect.', - 'date' => 'The :attribute is not a valid date.', - 'date_equals' => 'The :attribute must be a date equal to :date.', - 'date_format' => 'The :attribute does not match the format :format.', - 'decimal' => 'The :attribute must have :decimal decimal places.', - 'declined' => 'The :attribute must be declined.', - 'declined_if' => 'The :attribute must be declined when :other is :value.', - 'different' => 'The :attribute and :other must be different.', - 'digits' => 'The :attribute must be :digits digits.', - '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.', - 'enum' => 'The selected :attribute is invalid.', - 'exists' => 'The selected :attribute is invalid.', - 'file' => 'The :attribute must be a file.', - 'filled' => 'The :attribute field must have a value.', - 'gt' => [ - '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' => [ - '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.', - 'in_array' => 'The :attribute field does not exist in :other.', - 'integer' => 'The :attribute must be an integer.', - 'ip' => 'The :attribute must be a valid IP address.', - 'ipv4' => 'The :attribute must be a valid IPv4 address.', - 'ipv6' => 'The :attribute must be a valid IPv6 address.', - 'json' => 'The :attribute must be a valid JSON string.', - 'lowercase' => 'The :attribute must be lowercase.', - 'lt' => [ - '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' => [ - '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' => [ - '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.', - ], - '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' => [ - '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.', - ], - 'min_digits' => 'The :attribute must have at least :min digits.', - 'missing' => 'The :attribute field must be missing.', - 'missing_if' => 'The :attribute field must be missing when :other is :value.', - 'missing_unless' => 'The :attribute field must be missing unless :other is :value.', - 'missing_with' => 'The :attribute field must be missing when :values is present.', - 'missing_with_all' => 'The :attribute field must be missing when :values are present.', - 'multiple_of' => 'The :attribute must be a multiple of :value.', - 'not_in' => 'The selected :attribute is invalid.', - 'not_regex' => 'The :attribute format is invalid.', - 'numeric' => 'The :attribute must be a number.', - 'password' => [ - 'letters' => 'The :attribute must contain at least one letter.', - 'mixed' => 'The :attribute must contain at least one uppercase and one lowercase letter.', - 'numbers' => 'The :attribute must contain at least one number.', - 'symbols' => 'The :attribute must contain at least one symbol.', - 'uncompromised' => 'The given :attribute has appeared in a data leak. Please choose a different :attribute.', - ], - 'present' => 'The :attribute field must be present.', - 'prohibited' => 'The :attribute field is prohibited.', - 'prohibited_if' => 'The :attribute field is prohibited when :other is :value.', - 'prohibited_unless' => 'The :attribute field is prohibited unless :other is in :values.', - 'prohibits' => 'The :attribute field prohibits :other from being present.', - 'regex' => 'The :attribute format is invalid.', - '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.', - 'required_without' => 'The :attribute field is required when :values is not present.', - 'required_without_all' => 'The :attribute field is required when none of :values are present.', - 'same' => 'The :attribute and :other must match.', - 'size' => [ - '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.', - 'timezone' => 'The :attribute must be a valid timezone.', - 'unique' => 'The :attribute has already been taken.', - 'uploaded' => 'The :attribute failed to upload.', - 'uppercase' => 'The :attribute must be uppercase.', - 'url' => 'The :attribute must be a valid URL.', - 'ulid' => 'The :attribute must be a valid ULID.', - 'uuid' => 'The :attribute must be a valid UUID.', - - /* - |-------------------------------------------------------------------------- - | Custom Validation Language Lines - |-------------------------------------------------------------------------- - | - | Here you may specify custom validation messages for attributes using the - | convention "attribute.rule" to name the lines. This makes it quick to - | specify a specific custom language line for a given attribute rule. - | - */ - - 'custom' => [ - 'attribute-name' => [ - 'rule-name' => 'custom-message', - ], - ], - - /* - |-------------------------------------------------------------------------- - | Custom Validation Attributes - |-------------------------------------------------------------------------- - | - | The following language lines are used to swap our attribute placeholder - | with something more reader friendly such as "E-Mail Address" instead - | of "email". This simply helps us make our message more expressive. - | - */ - - 'attributes' => [], - -]; From 18c6b2b39aa5a68b60a5b20345afc4225ccb2586 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Wed, 8 Feb 2023 11:13:11 -0600 Subject: [PATCH 022/306] update change log --- CHANGELOG.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index dd4bbf8d9b1..a08dfc8a935 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,7 @@ # Release Notes -## [Unreleased](https://github.com/laravel/laravel/compare/v9.5.1...master) +## [Unreleased](https://github.com/laravel/laravel/compare/v9.5.1...10.x) -## [v10.0.0 (2022-02-07)](https://github.com/laravel/laravel/compare/v9.5.1...master) +## [v10.0.0 (2022-02-07)](https://github.com/laravel/laravel/compare/v9.5.1...10.x) Laravel 10 includes a variety of changes to the application skeleton. Please consult the diff to see what's new. From d73651553b3286f3009c9c13c1c7879547165160 Mon Sep 17 00:00:00 2001 From: Jess Archer Date: Sat, 11 Feb 2023 01:26:37 +1000 Subject: [PATCH 023/306] [10.x] A fresh welcome page (#6093) * wip * minor tweaks * Use cool gray for dark mode * Use the same grays for light and dark * Improve dots bg * Add some red back into dark mode * Replace Tailwind CDN with compiled CSS * Remove unnecessary class * Restore font-display: swap --------- Co-authored-by: Taylor Otwell --- resources/views/welcome.blade.php | 157 ++++++++++++++++-------------- 1 file changed, 86 insertions(+), 71 deletions(-) diff --git a/resources/views/welcome.blade.php b/resources/views/welcome.blade.php index 9faad4e85ad..d48a5d338b2 100644 --- a/resources/views/welcome.blade.php +++ b/resources/views/welcome.blade.php @@ -7,122 +7,137 @@ Laravel - + + - - -
+
@if (Route::has('login')) -