add reverb container, unread attribute in notification pivot table and private channel and event for new register
This commit is contained in:
@@ -17,6 +17,8 @@ class Notification extends Model
|
||||
'notification_user',
|
||||
'notification_id',
|
||||
'user_id'
|
||||
)->withTimestamps();
|
||||
)
|
||||
->withPivot('unread')
|
||||
->withTimestamps();
|
||||
}
|
||||
}
|
||||
|
||||
+4
-2
@@ -61,7 +61,9 @@ class User extends Authenticatable
|
||||
Notification::class,
|
||||
'notification_user',
|
||||
'user_id',
|
||||
'notification_id'
|
||||
)->withTimestamps();
|
||||
'notification_id',
|
||||
)
|
||||
->withPivot('unread')
|
||||
->withTimestamps();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user