Amit Merchant

Amit Merchant

A blog on PHP, JavaScript, and more

  • Articles
  • Projects
  • Uses
  • Art
  • About
  • Ctrl K
  • Search
Laravel PHP JavaScript Git React

Dry running Composer update without actually updating dependencies

October 5, 2021 — It would always be a good idea to cross-verify/confirm a destructive action before you actually perform it. For instance, while giving users the ability to delete something important, let’s say the user account, it’s a good idea to present them a confirmation popup before he/she deletes the account permanently.

Read More ⟶ ⋆ Composer

Simple blinking cursor animation using CSS

October 1, 2021 — The other day I was feeling a little nerdy (like all the cool kids) and so, I attempted to add this cool-looking blinking cursor at the end of my blog’s tagline like so.

Read More ⟶ ⋆ CSS

Always destructure your component props in React.js

September 28, 2021 — While working with React.js components, there are two ways using which you can retrieve/access the component props.

Read More ⟶ ⋆ React

Custom thumbnails for native video element in HTML

September 27, 2021 — The <video> is an HTML element that can be used to embed a media player on a page that can a variety of video formats. Here’s how a simple video embed with an external video source would look like.

Read More ⟶ ⋆ HTML

Retrieve request URL without specific query parameters in Laravel

September 24, 2021 — When you have a request in hand and if the URL is having a query string with different parameters, the easiest way to get the entire URL with the query string is using the fullUrl() method like so.

Read More ⟶ ⋆ Laravel

Prevent object extension — Object.freeze() vs Object.seal() vs Object.preventExtensions()

September 20, 2021 — When it comes to prevention of modification/updation of an object in JavaScript, there are few things that you can do.

Read More ⟶ ⋆ JavaScript

Abort a fetch request manually in JavaScript

September 17, 2021 — The Fetch API, as you might know, is a modern replacement of the good old XHRHttpRequest (popularly known as Ajax) that gives nicer developer experience (DX) by giving a promise based implementation.

Read More ⟶ ⋆ JavaScript

How to get class instance without a constructor in PHP

September 13, 2021 — Have you ever stumbled upon a situation in which you need an instance of a class to create its object but with one condition and that is there is no constructor declared for that class?

Read More ⟶ ⋆ PHP

Graceful error handling using Error Boundaries in React.js

September 12, 2021 — Working with React.js, it’s a common thing you would see where if something goes wrong, (for instance, a JavaScript error), the entire React.js app would crash instantly and renders blank.

Read More ⟶ ⋆ React

Initialize objects right into the constructor parameters in PHP 8.1

September 11, 2021 — With the introduction of PHP 8, the language now allows us to declare the class properties right into the constructor parameters. This is called constructor property promotion.

Read More ⟶ ⋆ PHP
« Prev 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 Next »

Download my eBook

PHP 8 in a Nutshell

Newsletter

By subscribing, you agree with Revue’s Terms of Service and Privacy Policy.

Follow me everywhere

My Tiny YouTube Channel ⟶ YouTube Icon

Recently Published

  • Check which Composer dependencies requires PHP 8 or 8.1 NEW

  • Capturing images and videos from the camera of mobile devices using HTML

  • Making glowing focus state for text input using CSS

  • Accessing Laravel documentation from the terminal

  • Finding security vulnerabilities in packages using Composer Audit command

Top Categories

Laravel PHP JavaScript Miscellaneous CSS React Git Jekyll VS Code ➔
Home About Contact Categories Guestbook
Previous page Next page
Amit Merchant
About Contact Categories Guestbook
Copyright © 2022 — Amit Merchant