add user_id attribut on Notifications table
This commit is contained in:
@@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user