Profile    Mohammed Shiroz Status   Loading  
Logo
Share This

My Programming
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

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
  • 71
  • 75
  • 9

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
  • 23
  • 73
  • 24

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
  • 140
  • 82
  • 19

Livewire vs Inertia vs a Separate SPA: How Laravel Teams Should Choose

Livewire vs Inertia vs a Separate SPA: How Laravel Teams Should Choose

Blog Summary

All three can build a great Laravel app, and all three can make a team miserable when picked for the wrong reasons. A practical comparison of Livewire, Inertia and a separate SPA, and the questions that decide it.

Read more
  • 50
  • 105
  • 12

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
  • 40
  • 14
  • 23

Laravel Deployment Mistakes That Break Production, and How to Avoid Them

Laravel Deployment Mistakes That Break Production, and How to Avoid Them

Blog Summary

The code was fine. The deploy wasn't. From queue workers running yesterday's code to log files owned by root, here are the Laravel deployment mistakes that bite most often, why they happen, and a script that avoids them.

Read more
  • 137
  • 81
  • 10

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