Get "PHP 8 in a Nutshell" (Now with PHP 8.5)
Amit Merchant
Amit Merchant Verified ($30/year for the domain)

A blog on PHP, JavaScript, and more

  • Articles
  • Snippets
  • Projects
  • Uses
  • Stats
  • About
  • Search
Laravel PHP JavaScript Git React

Implementing dark mode using Tailwind 3.0

January 23, 2022 — Dark mode (or night mode) has been an inherently important feature that has been with all the latest operating systems. Windows comes with a dark mode, macOS as well and even most Linux distributions are offering it.

Read More Tailwind

Trigger CI/CD deployments using empty Git Commits

January 20, 2022 — One of the most common scenarios with modern software development is the use of CI/CD pipelines. The way these CI/CD pipelines work is, you set up a webhook on your Git repository and allow these deployments to run every time something is pushed to the repository.

Read More Git

Grouping routes by controllers in Laravel 8.x

January 19, 2022 — There are many ways using which you can group your routes in Laravel right now. For instance, as by middlewares, subdomains, prefixes to name a few.

Read More Laravel

Reverting back to the original model instance in Laravel

January 16, 2022 — In Laravel, when you want to update the model that already exists in the database, you would first retrieve that model, set any attributes you wish to update, and then call the model’s save method like so.

Read More Laravel

Increasing Productivity with Omni — The Alfred of Chrome

January 13, 2022 — I haven’t worked with the macOS for an extended amount of time but when I did, I made sure I keep the Alfred installed on my system because having it on my machine allowed me to do things in a matter of few keystrokes and in turn, helped me save a lot of time!

Read More Miscellaneous

Displaying currency made simple in JavaScript

January 12, 2022 — Working with currencies is the use-case that you might find yourself stumbled upon more often than not. And one of the aspects of it is to display the currency on the frontend.

Read More JavaScript

Quickly switch to new branch with unstaged changes in Git

January 9, 2022 — Consider the scenario where you’re working on a Git branch called featureB and you have a lot of unstaged files in this branch.

Read More Git

Hide an image entirely when it does not load in HTML

January 6, 2022 — Well, this one blew my mind completely when I got to know about it. So, you probably are aware of the fact that the <img> tag is used for displaying images on websites.

Read More HTML

Fetch commit logs of certain function or method in Git

January 3, 2022 — You would reach for the git log command when you want to take a look at the list of commits for the Git repository you’re currently in.

Read More Git

Image magnifier using only one line of CSS

December 31, 2021 — When you’re working with images on your website, it would be good if you can provide some sort of image magnification to your users when clicked/tapped/hovered over the images for better visibility.

Read More CSS
Previous 1 ... 39 40 41 ... 78 Next

Download my eBook

NOW AVAILABLE PHP 8.5

Newsletter

Subscribe

Follow me everywhere

My Tiny YouTube Channel ➔ YouTube Icon

Recently Published

  • Partial Function Application is coming in PHP 8.6 NEW

  • One CSS Trick to Eliminate Scrollbar Layout Shifts

  • The modern way to draw squircles using corner-shape in CSS

  • The new, standards‑compliant URI/URL API in PHP 8.5

  • The new progress() function in CSS

Top Categories

Laravel PHP Miscellaneous JavaScript CSS VS Code Git React Tools ➔
Home About Contact Categories Links Guestbook
Previous page Next page
Amit Merchant
This is HAL 9000 from 2001: A Space Odyssey
About Contact Archive Tips Guestbook
One of my favorite flowers from Himalayas—Rhododendron
Copyright © 2025 — Amit Merchant