create notification when register
This commit is contained in:
1 parent
dfb70cc5ce
commit
eab9565c7d
7 files changed
+1191
-533
No files matched your search
@@ -12,6 +12,6 @@ class Notification extends Model
|
||||
|
||||
public function users(): \Illuminate\Database\Eloquent\Relations\BelongsToMany
|
||||
{
|
||||
return $this->belongsToMany(User::class, 'user_notification', 'notification_id', 'user_id');
|
||||
return $this->belongsToMany(User::class, 'notification_user', 'notification_id', 'user_id');
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user