From 10bdb5e8a26b55dfd0eb7fee5cf94e31161dc18c Mon Sep 17 00:00:00 2001 From: Mohamed Habib Date: Sat, 23 Aug 2025 13:24:51 +0300 Subject: [PATCH] Add nullableTimestampsTz method to Blueprint Add nullableTimestampsTz --- Schema/Blueprint.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Schema/Blueprint.php b/Schema/Blueprint.php index 3248fd307..bb409909a 100755 --- a/Schema/Blueprint.php +++ b/Schema/Blueprint.php @@ -1265,6 +1265,20 @@ public function nullableTimestamps($precision = null) return $this->timestamps($precision); } + + /** + * Add nullable creation and update timestamps to the table. + * + * Alias for self::timestampsTz(). + * + * @param int|null $precision + * @return \Illuminate\Support\Collection + */ + public function nullableTimestampsTz($precision = null) + { + return $this->timestampsTz($precision); + } + /** * Add creation and update timestampTz columns to the table. *