bugs fix send notification
This commit is contained in:
@@ -14,6 +14,7 @@ class NotificationToken extends Model
|
||||
'type',
|
||||
'token',
|
||||
'status',
|
||||
'device_id'
|
||||
];
|
||||
|
||||
protected $hidden = [
|
||||
|
||||
@@ -114,6 +114,6 @@ class User extends Authenticatable
|
||||
|
||||
public function routeNotificationForFcm()
|
||||
{
|
||||
return $this->notificationTokens()->pluck('token')->toArray();
|
||||
return $this->notificationTokens()->orderBy('created_at', 'desc')->pluck('token')->toArray();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user