app/Notification.php
/**
     * notify users with provided user ids
     *
     * @param array $notificationArray
     * @param array $users
     * @return bool
     */
notify users with provided user ids
@param array $notificationArray
@param array $users
@return bool
notify users with provided user ids @param array $notificationArray @param array $users @return bool
public function notifyUsers($notificationArray, $users)
    {
        try {
            $users = User::query()->where('id', $users)->pluck('id')->toArray();
        } catch (Exception $e) {
            return false;
        }
        if (!count($users)) {
            return false;
        }
        return $this->_notifyUsers($notificationArray, $users, 0);
    }
public function notifyUsers ( $ notificationArray , $ users ) { try { $ users = User :: query ( ) -> where ( 'id' , $ users ) -> pluck ( 'id' ) -> toArray ( ) ; } catch ( Exception $ e ) { return false ; } if ( ! count ( $ users ) ) { return false ; } return $ this -> _notifyUsers ( $ notificationArray , $ users , 0 ) ; }
notify users with provided user ids
 @param array $notificationArray
 @param array $users
 @return bool
notify users with provided user ids @param array $notificationArray @param array $users @return bool