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

Boolean toggle using useReducer hook in React.js

May 3, 2022 — Toggles are an integral part of a web application. Toggles usually have two states. Most of the time these would be of type boolean.

Read More React

The new findOr method in Laravel 9.x

May 2, 2022 — A minor release for Laravel 9.x dropped a few days ago and among lots of new features and improvements, this release has introduced a new method called findOr in the Eloquent Builder and Relations.

Read More Laravel

Readonly classes in PHP 8.2

April 29, 2022 — When readonly properties were introduced in PHP 8.1, it has provided a legitimate way of making class properties truly “readonly”.

Read More PHP

Effectively rendering lists in React.js

April 27, 2022 — When you’re working on the frontend side of the things of a website, one of the most common tasks is to render lists from arrays/objects.

Read More React

Null and false can be used as stand-alone types in PHP 8.2

April 24, 2022 — The latest version of PHP, PHP 8.1, has been around for quite some time and it comes packed with some great new features and enhancements.

Read More PHP

Send emails to a single test email address for test environments in Laravel

April 23, 2022 — When you’re working on a Laravel application, chances are you might be working with a lot of emails. For instance, every time, a new user is created, a welcome email and a confirmation email will be sent to the user.

Read More Laravel

Override default 404 behavior in Laravel

April 22, 2022 — When working with Laravel routes, if it’s not able to find the matching route, a typical 404 HTTP response will be generated and returned back.

Read More Laravel

Calculate age from the specified date in Carbon

April 15, 2022 — When you’re working with dates in Laravel, chances are high that you might have done it with this library called Carbon.

Read More PHP

Generate fake files of any size in macOS and Linux

April 13, 2022 — Oftentimes when working with applications, for the sake of testing things out we need placeholder files. For instance, if we have a file upload functionality, we may want to test it for a certain file type of a certain size.

Read More Miscellaneous

The new squish() helper in Laravel 9.x

April 12, 2022 — Oftentimes, we need to trim the user-entered input to remove the additional white spaces around the string.

Read More Laravel
Previous 1 ... 35 36 37 ... 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