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

Laravel Sanctum vs Passport: Which Auth Package Do You Actually Need?

Laravel Sanctum vs Passport: Which Auth Package Do You Actually Need?

Blog Summary

Sanctum and Passport both issue tokens, so people pick one at random. One question decides it: will apps you don't own access your users' data? Cookie SPAs, mobile tokens and OAuth, explained with code.

Read more
  • 124
  • 89
  • 21

Writing SQL You Can Still Read Six Months Later

Writing SQL You Can Still Read Six Months Later

Blog Summary

Every codebase has a query everyone is afraid to touch. Formatting, honest names, CTEs, comments that explain business rules and a first look at window functions turn it into SQL anyone can follow.

Read more
  • 148
  • 107
  • 10

Soft Deletes, Archives and Audit Logs: Keeping History the Right Way

Soft Deletes, Archives and Audit Logs: Keeping History the Right Way

Blog Summary

Undo a delete, get finished records out of the way, answer who changed what, and forget a user on request: four different jobs. When to use soft deletes, archives, audit logs and hard deletes in Laravel, including the unique index trap.

Read more
  • 137
  • 15
  • 20

Laravel Validation Rules You're Probably Not Using (But Should Be)

Laravel Validation Rules You're Probably Not Using (But Should Be)

Blog Summary

Most Laravel apps validate with required, string and max, then hand-code the rest in controllers. Unique-ignore, scoped exists, sometimes, bail, prohibited_if, Password and enum rules do it better. Each one with the problem it solves.

Read more
  • 125
  • 113
  • 20

Five React Mistakes in Forms and State That Cause the Weirdest Bugs

Five React Mistakes in Forms and State That Cause the Weirdest Bugs

Blog Summary

Deleting one row clears another. A timer stops at 1. An input warns it went from uncontrolled to controlled. Five common React form and state mistakes, why each happens, and the small fix for each.

Read more
  • 118
  • 89
  • 14

Pagination Done Right: Offset vs Cursor, and Why Page 40,000 Is So Slow

Pagination Done Right: Offset vs Cursor, and Why Page 40,000 Is So Slow

Blog Summary

Page 1 is instant, page 40,000 takes forever, and infinite scroll shows duplicates. Here's how OFFSET really works, why cursor pagination stays fast, and when to use paginate, simplePaginate or cursorPaginate in Laravel.

Read more
  • 13
  • 31
  • 8

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