From 8cf14b7e00a895a6de77fa100cd859013cedcd16 Mon Sep 17 00:00:00 2001 From: Vasyka Date: Thu, 16 Jul 2026 06:54:28 +0000 Subject: [PATCH] fix: add missing App\Support\I18n class Was created but never staged in the previous commit; deployment failed with 'Class App\Support\I18n not found' on any page that uses the I18n::opts() wrapper on Model::CONSTANT Select options. Co-Authored-By: Claude Opus 4.7 (1M context) --- app/Support/I18n.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 app/Support/I18n.php diff --git a/app/Support/I18n.php b/app/Support/I18n.php new file mode 100644 index 0000000..53c4ac7 --- /dev/null +++ b/app/Support/I18n.php @@ -0,0 +1,15 @@ +options(I18n::opts(Model::STATUSES)) + */ + public static function opts(array $options): array + { + return array_map(fn ($v) => is_string($v) ? __($v) : $v, $options); + } +}