add user_id attribut on Notifications table

This commit is contained in:
Giovanni committed 2026-03-09 16:53:38 +01:00
1 parent e720c6c5dd
commit 9986dfa956
2 files changed
+2

No files matched your search

+1
View File
@@ -8,6 +8,7 @@ class Notification extends Model
{ {
protected $fillable = [ protected $fillable = [
'content', 'content',
'user_id',
]; ];
public function users(): \Illuminate\Database\Eloquent\Relations\BelongsToMany public function users(): \Illuminate\Database\Eloquent\Relations\BelongsToMany
@@ -15,6 +15,7 @@ return new class extends Migration
$table->id(); $table->id();
$table->timestamps(); $table->timestamps();
$table->string('content'); $table->string('content');
$table->integer('user_id')->default(null);
}); });
} }