add user_id attribut on Notifications table
This commit is contained in:
1 parent
e720c6c5dd
commit
9986dfa956
2 files changed
+2
No files matched your search
@@ -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);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user