Amit Merchant

Amit Merchant

A blog on PHP, JavaScript, and more

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

A cool helper function to check if anything is blank in PHP

September 9, 2021 — There are a lot of different ways in PHP using which you can validate if the given value is “blank” or not. The method to validate depends upon the type of value that we’re targetting.

Read More ⟶ ⋆ PHP

The whereRelation (A better version of whereHas) method in Laravel 8.x

September 5, 2021 — Checking the existence of relationships and fetching model records is quite easy in Laravel.

Read More ⟶ ⋆ Laravel

Designing websites keeping floating tab bar of Safari 15 (on iOS) in mind

September 2, 2021 — The newest version of Safari, i.e Safari 15, on iOS is great. It comes with an all-new layout and a new way of navigating websites on it.

Read More ⟶ ⋆ Miscellaneous

Position children elements in the parent absolutely using CSS

August 29, 2021 — Sometimes, it might be the case where you want to place/position the children elements that reside insides their parent absolutely.

Read More ⟶ ⋆ CSS

RegEx simplified with named capture groups in JavaScript

August 24, 2021 — Regular expressions (RegEx) are great little strings that help in solving some of the complex problems that are rather hard if we don’t use the RegExes.

Read More ⟶ ⋆ JavaScript

Getting subsets of validated data in Laravel 8.x

August 21, 2021 — Laravel offers mainly two ways to validate the request data inside of the controller methods. Either you can directly call the validate method on the Illuminate\Http\Request object and set the validation rules or you can create a form request and type-hint the controller method with this form request class.

Read More ⟶ ⋆ Laravel

Why choose React Native for your business?

August 20, 2021 — No matter what field your business is in, having a mobile application to improve your customer’s engagement and experience helps it immensely.

Read More ⟶ ⋆ React

Avoid relative import paths in React.js using Webpack aliases

August 18, 2021 — Here’s a little tip for your React.js projects that can dramatically improve your developer experience.

Read More ⟶ ⋆ React

Conditional validation rules in Laravel 8.x

August 16, 2021 — Sometimes, you might end up in a situation where you would want to add certain validation rules for fields.

Read More ⟶ ⋆ Laravel

console.trace — A better alternative to console.log

August 13, 2021 — If you ask me what is that one thing that I (over)use when working with JavaScript, the only answer you’ll get is console.log().

Read More ⟶ ⋆ JavaScript
« 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