Gurmandeep SinghGurmandeep Singh
Gurmandeep Singh
Full Stack Developer · 10+ years

Hi, I'm Gurmandeep Singh

I build reliable, easy-to-use and efficient web applications — across the stack, from database to pixel.

  • PHP
  • Laravel
  • MySQL
  • PostgreSQL
  • JavaScript
  • TypeScript
  • React
  • Next.js
  • Node.js

Latest writing

Notes on Laravel, PHP, JavaScript and web development.

Popular on X

Most-liked tips and updates from my X timeline.

Gurmandeep Singh
Gurmandeep Singh
@iamgurmandeep · September 28, 2025

#Laravel Tip 🚀 In Laravel 12, you can automatically cast Eloquent attributes to HTML strings using AsHtmlString::class.

Likes: 93Views: 4.5K
Gurmandeep Singh
Gurmandeep Singh
@iamgurmandeep · September 27, 2025

#Laravel Tip 🚀 In Laravel 12, you can use the toResource() helper directly on your Eloquent models. Just fetch your data, and instantly convert it into a clean, structured API resource.

Likes: 127Views: 5.8K
Gurmandeep Singh
Gurmandeep Singh
@iamgurmandeep · September 23, 2025

#Laravel Tip 🚀 In Laravel, the Arr::hasAll method allows you to check if all the specified keys are present in an array. It supports nested keys using dot notation and returns true only if every key exists.

Likes: 81Views: 3.8K
Gurmandeep Singh
Gurmandeep Singh
@iamgurmandeep · September 20, 2025

#Laravel Tip 🚀 The Str::mask method hides part of a string by replacing it with a repeated character, making it useful for covering things like emails or phone numbers.

Likes: 126Views: 7.3K
Gurmandeep Singh
Gurmandeep Singh
@iamgurmandeep · September 2, 2025

#Laravel Tip 🔥 You can use incrementEach() method to increment multiple columns with a single query.

Likes: 62Views: 2.4K
Gurmandeep Singh
Gurmandeep Singh
@iamgurmandeep · September 2, 2025

#Laravel Tip 🔥 You can use the 'replicate' method to create the unsaved copy of the existing model instance.

Likes: 86Views: 3.5K
Gurmandeep Singh
Gurmandeep Singh
@iamgurmandeep · March 28, 2024

#Laravel Tip 🚀 You can use the incrementEach() and decrementEach() methods to increment and decrement multiple columns with a single query.

Likes: 77Views: 2.2K
Gurmandeep Singh
Gurmandeep Singh
@iamgurmandeep · March 21, 2024

#Laravel Tip 🚀 You can use the min_digits and max_digits built-in validation rules to require an integer to be between a minimum and maximum length.

Likes: 56Views: 2.7K