diff --git a/config/filament.php b/config/filament.php index 412904384..2d03f20e1 100644 --- a/config/filament.php +++ b/config/filament.php @@ -182,8 +182,8 @@ */ 'database_notifications' => [ - 'enabled' => false, - 'polling_interval' => '30s', + 'enabled' => true, + 'polling_interval' => '10s', ], /* diff --git a/database/migrations/2022_10_24_152031_create_notifications_table.php b/database/migrations/2022_10_24_152031_create_notifications_table.php new file mode 100644 index 000000000..4357c9efa --- /dev/null +++ b/database/migrations/2022_10_24_152031_create_notifications_table.php @@ -0,0 +1,35 @@ +uuid('id')->primary(); + $table->string('type'); + $table->morphs('notifiable'); + $table->text('data'); + $table->timestamp('read_at')->nullable(); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('notifications'); + } +};