create notification when register
This commit is contained in:
+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