Profile    Mohammed Shiroz Status   Loading  
Logo
Share This

My laravel
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 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
  • 30
  • 130
  • 17

Race Conditions Explained With a Bank Account: Where the Missing Money Went

Race Conditions Explained With a Bank Account: Where the Missing Money Went

Blog Summary

Two withdrawals hit an account at the same moment. Both succeed, and money disappears. Here's how a lost update happens, and four ways to stop it in Laravel: atomic updates, row locks, version checks and unique constraints.

Read more
  • 34
  • 149
  • 9

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
  • 40
  • 124
  • 18

Clean Controllers in Laravel: Actions, Services or Form Requests?

Clean Controllers in Laravel: Actions, Services or Form Requests?

Blog Summary

Every Laravel project has that 90-line controller method. Here's how to refactor it step by step with Form Requests, single-action classes and invokable controllers, and a simple rule for where each piece of logic belongs.

Read more
  • 86
  • 106
  • 7

Nginx vs Apache for PHP Apps: What Actually Matters in 2025

Nginx vs Apache for PHP Apps: What Actually Matters in 2025

Blog Summary

Nginx earned its reputation against Apache with mod_php, but with PHP-FPM on both the gap shrinks. Here's what really differs, the .htaccess trap when you migrate, and a Laravel-ready Nginx config.

Read more
  • 80
  • 60
  • 16

Queues and Message Brokers Explained: Redis, RabbitMQ and SQS Without the Jargon

Queues and Message Brokers Explained: Redis, RabbitMQ and SQS Without the Jargon

Blog Summary

Your users shouldn't wait for emails, PDFs and push notifications. Here's how queues really work, why every job can run twice, what dead letter queues are for, and how to pick between Redis, RabbitMQ and SQS.

Read more
  • 37
  • 124
  • 13

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