From 156b9200bcc308c77e29b621b6a295d774b7854c Mon Sep 17 00:00:00 2001 From: Brandon Estrella Date: Thu, 10 Jul 2025 14:54:02 -0700 Subject: [PATCH] Fix Laravel 12 Schema::connection() compatibility --- migrations/2024_01_01_000000_create_developer_logs_table.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/migrations/2024_01_01_000000_create_developer_logs_table.php b/migrations/2024_01_01_000000_create_developer_logs_table.php index a0adcf1..ad6b805 100644 --- a/migrations/2024_01_01_000000_create_developer_logs_table.php +++ b/migrations/2024_01_01_000000_create_developer_logs_table.php @@ -14,7 +14,7 @@ public function up(): void $tableName = config('devlogger.table_name', 'developer_logs'); $connection = config('devlogger.database_connection', null); - $schema = $connection ? Schema::connection($connection) : Schema::connection(); + $schema = $connection ? Schema::connection($connection) : Schema; $schema->create($tableName, function (Blueprint $table) { $table->id(); @@ -52,7 +52,7 @@ public function down(): void $tableName = config('devlogger.table_name', 'developer_logs'); $connection = config('devlogger.database_connection', null); - $schema = $connection ? Schema::connection($connection) : Schema::connection(); + $schema = $connection ? Schema::connection($connection) : Schema; $schema->dropIfExists($tableName); }