Wednesday , 21 July 2021

THE WEB TIER

Recreate STORIES between WEB DEVELOPMENT & YOU

Snippets

JavaScript Array Map Method

The JavaScript Array.map() method allows to iterate over an array and modify its elements using a callback function. The callback function will then be executed on each of the array's elements.

7 Must-know Fundamental Array Methods in JavaScript

Arrays are list-like objects whose prototype has methods to perform traversal and mutation operations. Neither the length of a JavaScript array nor the types of its elements are fixed. Since an array's length can change at any time, and data can be stored at non-contiguous locations in the array,

Stateless Functional Components in React

A stateless component is just presentation of the state. It only can render props and it should only do that. A good example is a header component: let’s say we have a header which needs to be styled and displayed especially so we create a header stateless component which would look like this.

Simple Date Accessors – Laravel

For scenarios where you require your dates in Laravel to be properly formatted in human readable form for your APIs. Here's the simple snippet you can use in your Model class.

Implement FCM Notification with Laravel

There're plenty of libraries for setting up FCM notifications with Laravel. But i found it pretty tough to set it up. In this short tutorial, we'll implement FCM Notifications with Laravel from the ground up. So fasten your seat belts and follow along.

Take Me Top