Profile    Mohammed Shiroz Status   Loading  
Logo
Share This

My php
blog and Updates

It's my personal blog and my post about what was my interested in. Not regularly. If you have any questions any discussion, I'm happy you get in touch with me, and try to answer as many as possible!

Blog
Let's See
Back to blog
Filter by:
Tags
//Article

How a Hash Map Works (and Why Your PHP Array Is Secretly One)

How a Hash Map Works (and Why Your PHP Array Is Secretly One)

Blog Summary

Finding one item among millions without searching sounds like cheating. It's a hash map. Buckets, hash functions, collisions, why lookups are O(1) on average, a 2011 security scare, and what it means for PHP arrays.

Read more
  • 20
  • 139
  • 20

Six Mistakes With Laravel Eloquent Events and Observers (and the Fixes)

Six Mistakes With Laravel Eloquent Events and Observers (and the Fixes)

Blog Summary

Observers feel like magic until an import sends hundreds of emails and a bulk update skips your audit log. Six common Eloquent event mistakes, why each one happens, and the fix in Laravel 12.

Read more
  • 33
  • 105
  • 11

Concurrency vs Parallelism, Explained With a Kitchen

Concurrency vs Parallelism, Explained With a Kitchen

Blog Summary

One cook can serve dinner for six by never standing still while the water boils. That's concurrency. A kitchen in four scenes, with Node and Laravel examples, and how to tell which one your slow code needs.

Read more
  • 145
  • 17
  • 19

Laravel Queues in Depth: Chains, Batches and Unique Jobs

Laravel Queues in Depth: Chains, Batches and Unique Jobs

Blog Summary

One job is easy. Real work is steps in order, hundreds of jobs with one finish line, and users who click twice. Here's how chains, batches, unique jobs and rate limits fit together, gotchas included.

Read more
  • 60
  • 92
  • 17

Handling Money in Code: Integers, Decimals and Rounding Done Right

Handling Money in Code: Integers, Decimals and Rounding Done Right

Blog Summary

In PHP, intval(19.99 * 100) gives you 1998. That missing unit is how money bugs start. Why floats and money don't mix, how to use minor units and DECIMAL columns, and the rounding rules that keep invoices adding up.

Read more
  • 116
  • 86
  • 4

Eloquent Relationships You Might Be Underusing (and the Queries They Replace)

Eloquent Relationships You Might Be Underusing (and the Queries They Replace)

Blog Summary

Most Laravel apps use hasMany and belongsTo, then hand-write everything else. hasManyThrough, latestOfMany, withSum, whereRelation and morphs can replace pluck-and-loop code with cleaner, faster queries.

Read more
  • 59
  • 67
  • 16

01. About Shiroz

Mohammed Shiroz

Hi, I'm Mohammed Shiroz, a software engineer and AI enthusiast from Sri Lanka who turns ideas into intelligent, real-world solutions. With over 9 years of hands-on experience, I currently lead real estate ERP development at Kate Group, a...

03.My Projects

04. Categories

Ready To Start Your Project ?

Get in Touch
Close