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

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

Improved single-method accessors and mutators in Laravel 8.x

December 27, 2021 — When you want to format certain Eloquent models before setting/retrieving in Laravel, you would certainly reach for the accessors and mutators.

Read More Laravel
Previous 1 ... 41 42 43 ... 80 Next

Download my eBook

NOW AVAILABLE PHP 8.5

Explore by topic

My Tiny YouTube Channel ➔ YouTube Icon
Hot off the press

Recently Published

  • When AI Doesn't Need to Generate Anything NEW

  • Let the Pull Request Wake Your Agent Up

  • What If UI Components Were Built Like Modular Phones?

  • Giving AI Agents a Better Way to Debug CSS

  • Safari Just Made Browser-Controlled Dark Mode Real

Explore the archive

Top Categories

Laravel PHP Miscellaneous JavaScript CSS VS Code Git React Tools ➔
Home About Contact Archive 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 © 2026 — Amit Merchant