P2P is peer to peer and is not what Facebook's is. P2P is a technology that links clients directly to clients.
You're wanting some sort of web socket (WS) for your users to chat via. There's loads of tutorials for this. I use Pusher for a hosted socket but you can use https://socket.io/ for example.
@kfiroj236 You can do private channels for this. Just give it a separate ID (the two user's IDs together maybe) and authorise only those two to connect. That tutorial will get you the thing working. You can work out the rest from the docs or ask here for more info when you get there.
I have done with the group chat system how can I convert it to a pear to pear private chat system and all another user should visible to me whose online or whose offline.
pear is a fruit. You're meaning "peer to peer", or "p2p". ;)
It sounds like you haven't watched the whole video series ( https://laracasts.com/series/get-real-with-laravel-echo ) yet. It sounds like you're working with a "public channel", which anybody can view/listen/respond to. What you're wanting is to use a "private" channel covered in episode 6.
Are you saying you want to become a developer but don't want to pay any to learn I'm glad my doctor does not have that same attitude. Surely you can afford a small amount for quality training.
Did you read the official pusher docs I linked to for "private channels"? Starting with the official docs is the first place you should go to get info.