diff --git a/app/Providers/Filament/AdminPanelProvider.php b/app/Providers/Filament/AdminPanelProvider.php index 7cd0271..d2b33c3 100644 --- a/app/Providers/Filament/AdminPanelProvider.php +++ b/app/Providers/Filament/AdminPanelProvider.php @@ -76,6 +76,7 @@ public function panel(Panel $panel): Panel ]) ->login(Login::class) ->unsavedChangesAlerts() + ->databaseNotifications() ->databaseTransactions(); } } diff --git a/database/migrations/2024_05_12_233426_create_notifications_table.php b/database/migrations/2024_05_12_233426_create_notifications_table.php new file mode 100644 index 0000000..a39ec86 --- /dev/null +++ b/database/migrations/2024_05_12_233426_create_notifications_table.php @@ -0,0 +1,31 @@ +uuid('id')->primary(); + $table->string('type'); + $table->uuidMorphs('notifiable'); + $table->json('data'); + $table->timestamp('read_at')->nullable(); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::dropIfExists('notifications'); + } +}; diff --git a/package-lock.json b/package-lock.json index 621a548..bf790d9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,5 +1,5 @@ { - "name": "ekartar", + "name": "eKartar", "lockfileVersion": 3, "requires": true, "packages": {