From 3a57833b87b8e7c258dbe8440e906eff455fdaff Mon Sep 17 00:00:00 2001 From: Franck DAKIA Date: Sun, 23 Mar 2025 06:27:34 +0000 Subject: [PATCH] fix: generate notification table command --- src/Console/Console.php | 2 +- src/Console/stubs/model/notification.stub | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Console/Console.php b/src/Console/Console.php index 326327ce..34d539e1 100644 --- a/src/Console/Console.php +++ b/src/Console/Console.php @@ -616,7 +616,7 @@ private function generate(): void { $action = $this->arg->getAction(); - if (!in_array($action, ['key', 'resource', 'session-table', 'cache-table', 'queue-table'])) { + if (!in_array($action, ['key', 'resource', 'notification-table', 'session-table', 'cache-table', 'queue-table'])) { $this->throwFailsCommand('This action is not exists', 'help generate'); } diff --git a/src/Console/stubs/model/notification.stub b/src/Console/stubs/model/notification.stub index f6c52cb4..a4b84679 100644 --- a/src/Console/stubs/model/notification.stub +++ b/src/Console/stubs/model/notification.stub @@ -16,7 +16,7 @@ class {className} extends Migration $table->addString('concern_id'); $table->addString('concern_type'); $table->addText('data'); - $table->addDatetime('read_at', ['nullable' => true); + $table->addDatetime('read_at', ['nullable' => true]); $table->addTimestamps(); }); }