add user_id attribut on Notifications table

This commit is contained in:
2026-03-09 16:53:38 +01:00
parent e720c6c5dd
commit 9986dfa956
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -8,6 +8,7 @@ class Notification extends Model
{
protected $fillable = [
'content',
'user_id',
];
public function users(): \Illuminate\Database\Eloquent\Relations\BelongsToMany
@@ -15,6 +15,7 @@ return new class extends Migration
$table->id();
$table->timestamps();
$table->string('content');
$table->integer('user_id')->default(null);
});
}