Monthly Archives: December 2019

ECMAScript proposal: String.prototype.replaceAll

By Dr. Axel Rauschmayer

The normal string method .replace() only lets you replace one occurrence if you search for string (and not a regular expression with the flag /g). The proposal “String.prototype.replaceAll (by Mathias Bynens) fixes that.

Source:: <a href=http://feedproxy.google.com/~r/2ality/~3/rkR3ZCwf1tY/string-prototype-replaceall.html target="_blank" title="ECMAScript proposal: String.prototype.replaceAll” >2ality

Build a chat app with Laravel and Vue

By Chris Nwamba

It’s been a while since I wrote about Laravel and thought I should do something fun with it. In this tutorial, I will show you how to build a web-based chat application using Laravel and Vue.js quickly. With a simple step by step guide, you will be able to create a system that supports user authentication and authorization before participating in a chat session.

Due to the fact that Laravel is shipped with Vue.js by default, It is very easy to build single-page applications, handle frontend logic by creating Vue components and use them like you would use a regular HTML tag inside the blade template of Laravel.

To make this chat application fully functional, you will leverage CometChat chat infrastructure to enhance the sharing of instant messages.

What we will build

At the end of this tutorial, you would have built a system that will allow users to send and receive messages in realtime, as shown b

Source:: scotch.io