Get "PHP 8 in a Nuthshell" (Soon 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

Using ::class static class keyword in PHP

May 8, 2020 — If you’ve worked with modern frameworks such as Laravel, you might have seen this keyword ::class be used extensively throughout the application.

Read More PHP

How to pull a composer package in a Laravel project locally

May 7, 2020 — Lately, if you’ve been working on some functionality and you want to extract it as a Laravel package, you’d like to first test it locally. And if everything is well and good, you’d then publish it to the packagist.org.

Read More Laravel

Select React element type using general expressions

May 6, 2020 — The usual way of using a React element is to first import it and then utilize it inside of an another React component like so.

Read More React

Null coalescing assignment operator in PHP

May 4, 2020 — When PHP 7.0 released, it has added many nice things in PHP’s toolbelt of utilities. One of the things among this was Null coalescing assignment operator (??).

Read More PHP

How to implement wrapper classes in PHP

May 4, 2020 — If you look at PHP’s core helper functions, they aren’t very intuitive to use and are pretty inconsistent at times. For instance, the array_map function is used to apply the callback to the elements of the given arrays. Here’s how its definition looks like.

Read More PHP

Using custom class as a Facade in Laravel

April 29, 2020 — Facades, in Laravel, is basically a way of using Laravel’s classes without injecting them into the constructor of the class in which you want to use them.

Read More Laravel

Create your own custom Blade directive in Laravel

April 27, 2020 — Laravel Blade comes with many in-built directives such as @section, @yield, @parent, @json and several others, all of which have a certain purpose attached to them.

Read More Laravel

Auto discovery of events in Laravel

April 26, 2020 — In this article, I’ve written about how to use event subscribers or observer pattern in Laravel.

Read More Laravel

Listen to multiple events in a single class in Laravel

April 24, 2020 — The Observer design pattern is one of the twenty-three well-known “Gang of Four” design patterns that describe how to solve recurring design problems to design flexible and reusable object-oriented software, that is, objects that are easier to implement, change, test, and reuse.

Read More Laravel

Using different mail drivers dynamically in Laravel 7.x

April 23, 2020 — Sending emails in Laravel is a breeze. All you have to do is, configure your default mail service in config/mail.php and it’s related configuration in config/services.php file.

Read More Laravel
Previous 1 ... 63 64 65 ... 77 Next

Download my eBook

NOW AVAILABLE PHP 8.4

Newsletter

Subscribe

Follow me everywhere

My Tiny YouTube Channel ➔ YouTube Icon

Recently Published

  • Everything that is coming in PHP 8.5 NEW

  • Stop Ignoring Important Returns with PHP 8.5’s `#[\NoDiscard]` Attribute

  • Innovative Solutions for eCommerce — How Shopify Headless Works

  • The best paid SVG icon resources that money can buy

  • The new if() function in CSS has landed in the latest Chrome

Top Categories

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