From 41e7b8f00c1a5c7801a47fb42b51c30c27344e0e Mon Sep 17 00:00:00 2001
From: AI MANSOURI <78476938+Husseinadq@users.noreply.github.com>
Date: Thu, 26 Feb 2026 17:40:23 +0300
Subject: [PATCH 1/4] Neutralize DB_URL in phpunit.xml test config (#6761)
---
phpunit.xml | 1 +
1 file changed, 1 insertion(+)
diff --git a/phpunit.xml b/phpunit.xml
index d7032415..e7f0a48d 100644
--- a/phpunit.xml
+++ b/phpunit.xml
@@ -25,6 +25,7 @@
+
From b36082a239753c8bff7e2df152b534c675da7282 Mon Sep 17 00:00:00 2001
From: Taylor Otwell
Date: Mon, 9 Mar 2026 09:42:33 -0500
Subject: [PATCH 2/4] update index
---
database/migrations/0001_01_01_000002_create_jobs_table.php | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/database/migrations/0001_01_01_000002_create_jobs_table.php b/database/migrations/0001_01_01_000002_create_jobs_table.php
index 425e7058..967fbf5e 100644
--- a/database/migrations/0001_01_01_000002_create_jobs_table.php
+++ b/database/migrations/0001_01_01_000002_create_jobs_table.php
@@ -13,12 +13,14 @@ return new class extends Migration
{
Schema::create('jobs', function (Blueprint $table) {
$table->id();
- $table->string('queue')->index();
+ $table->string('queue');
$table->longText('payload');
$table->unsignedTinyInteger('attempts');
$table->unsignedInteger('reserved_at')->nullable();
$table->unsignedInteger('available_at');
$table->unsignedInteger('created_at');
+
+ $table->index(['queue', 'reserved_at', 'available_at']);
});
Schema::create('job_batches', function (Blueprint $table) {
From 6b54a4df067604dc9f1abae4602928bc9b089975 Mon Sep 17 00:00:00 2001
From: taylorotwell <463230+taylorotwell@users.noreply.github.com>
Date: Tue, 10 Mar 2026 16:17:50 +0000
Subject: [PATCH 3/4] Update CHANGELOG
---
CHANGELOG.md | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 17fc0ed7..41432396 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,6 +1,12 @@
# Release Notes
-## [Unreleased](https://github.com/laravel/laravel/compare/v12.11.2...12.x)
+## [Unreleased](https://github.com/laravel/laravel/compare/v12.12.0...12.x)
+
+## [v12.12.0](https://github.com/laravel/laravel/compare/v12.11.2...v12.12.0) - 2026-03-09
+
+* Update phpunit version to ^11.5.50 to address CVE by [@PerryvanderMeer](https://github.com/PerryvanderMeer) in https://github.com/laravel/laravel/pull/6746
+* [12.x] Add `APP_NAME` fallback in mail config by [@apoorvdarshan](https://github.com/apoorvdarshan) in https://github.com/laravel/laravel/pull/6755
+* [12.x] Neutralize DB_URL in default phpunit.xml by [@Husseinadq](https://github.com/Husseinadq) in https://github.com/laravel/laravel/pull/6761
## [v12.11.2](https://github.com/laravel/laravel/compare/v12.11.1...v12.11.2) - 2026-01-19
From f1f2befaa81a4d41cc5fa419416e9ea858dc565d Mon Sep 17 00:00:00 2001
From: nuno maduro
Date: Tue, 10 Mar 2026 19:58:02 +0000
Subject: [PATCH 4/4] Uses unqualified names (#6760)
---
app/Models/User.php | 3 ++-
bootstrap/providers.php | 4 +++-
config/auth.php | 4 +++-
config/database.php | 5 +++--
database/factories/UserFactory.php | 3 ++-
5 files changed, 13 insertions(+), 6 deletions(-)
diff --git a/app/Models/User.php b/app/Models/User.php
index 749c7b77..68f3a669 100644
--- a/app/Models/User.php
+++ b/app/Models/User.php
@@ -3,13 +3,14 @@
namespace App\Models;
// use Illuminate\Contracts\Auth\MustVerifyEmail;
+use Database\Factories\UserFactory;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
class User extends Authenticatable
{
- /** @use HasFactory<\Database\Factories\UserFactory> */
+ /** @use HasFactory */
use HasFactory, Notifiable;
/**
diff --git a/bootstrap/providers.php b/bootstrap/providers.php
index 38b258d1..fc94ae60 100644
--- a/bootstrap/providers.php
+++ b/bootstrap/providers.php
@@ -1,5 +1,7 @@
[
'users' => [
'driver' => 'eloquent',
- 'model' => env('AUTH_MODEL', App\Models\User::class),
+ 'model' => env('AUTH_MODEL', User::class),
],
// 'users' => [
diff --git a/config/database.php b/config/database.php
index df933e7f..64709ce5 100644
--- a/config/database.php
+++ b/config/database.php
@@ -1,6 +1,7 @@
true,
'engine' => null,
'options' => extension_loaded('pdo_mysql') ? array_filter([
- (PHP_VERSION_ID >= 80500 ? \Pdo\Mysql::ATTR_SSL_CA : \PDO::MYSQL_ATTR_SSL_CA) => env('MYSQL_ATTR_SSL_CA'),
+ (PHP_VERSION_ID >= 80500 ? Mysql::ATTR_SSL_CA : PDO::MYSQL_ATTR_SSL_CA) => env('MYSQL_ATTR_SSL_CA'),
]) : [],
],
@@ -79,7 +80,7 @@ return [
'strict' => true,
'engine' => null,
'options' => extension_loaded('pdo_mysql') ? array_filter([
- (PHP_VERSION_ID >= 80500 ? \Pdo\Mysql::ATTR_SSL_CA : \PDO::MYSQL_ATTR_SSL_CA) => env('MYSQL_ATTR_SSL_CA'),
+ (PHP_VERSION_ID >= 80500 ? Mysql::ATTR_SSL_CA : PDO::MYSQL_ATTR_SSL_CA) => env('MYSQL_ATTR_SSL_CA'),
]) : [],
],
diff --git a/database/factories/UserFactory.php b/database/factories/UserFactory.php
index 584104c9..c4ceb074 100644
--- a/database/factories/UserFactory.php
+++ b/database/factories/UserFactory.php
@@ -2,12 +2,13 @@
namespace Database\Factories;
+use App\Models\User;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Str;
/**
- * @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\User>
+ * @extends Factory
*/
class UserFactory extends Factory
{