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