Validating Laravel requests using rule objects

Laravel comes with a multitude of ways to validate request parameters. For instance, you could use Illuminate\Http\Request’s validate method where you can specify all the fields that you would want to get validated inside controller’s action. You can do it like so.

» Read More

Detecting if device is online or offline using plain JavaScript

There might be cases where you would like to check if the device on which the website is loading is connected to the internet or not. For instance, this can be used to show the user the message if their device is offline or to disable some functionality of the application if the device is offline.

» Read More

Node.js vs Deno — A high-level comparison

This is a high-level comparison between Node.js and Deno. This article will get updated regularly as Deno is still in its early days, so we might see some differentiating factors in the coming years. But for now, this is how both, Node.js and Deno, stand to each other.

» Read More

Components with inline templates in Vue.js

Vue.js has this handy feature where you can set the inline-template special attribute on the component and now the component can use its inner content as its template, rather than treating it as distributed content.

» Read More

Newsletter

Follow me on Twitter @amit_merchant