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

What Happens Inside a PHP Request: From Apache to Your Laravel Controller

What Happens Inside a PHP Request: From Apache to Your Laravel Controller

Blog Summary

Your controller is the last stop on a surprisingly long trip. Follow one request from Apache through PHP-FPM, Laravel's bootstrap, middleware and the router, and see why PHP rebuilds everything every time and how OPcache saves it.

Read more
  • 16
  • 134
  • 18

Laravel Scheduling: Replace Your Messy Crontab With Code You Can Review

Laravel Scheduling: Replace Your Messy Crontab With Code You Can Review

Blog Summary

Ten cron lines on a server nobody remembers editing is a bug waiting to happen. Laravel's scheduler turns them into one cron entry and readable, versioned code, with overlap and multi-server protection built in.

Read more
  • 34
  • 147
  • 24

Hashing vs Encryption vs Encoding: The One Question That Tells Them Apart

Hashing vs Encryption vs Encoding: The One Question That Tells Them Apart

Blog Summary

"The passwords are encrypted, we base64 them" contains two mistakes. Hashing, encryption and encoding solve different problems. One question tells them apart, plus why SHA-256 is wrong for passwords and bcrypt or Argon2id is right.

Read more
  • 10
  • 70
  • 13

Laravel Feature Tests That Don't Break Every Week

Laravel Feature Tests That Don't Break Every Week

Blog Summary

You rename a column, nothing changes for users, and fourteen tests go red. Here's how to write Laravel feature tests that check behaviour instead of implementation, using factories, RefreshDatabase, JSON assertions and fakes.

Read more
  • 38
  • 117
  • 22

Laravel API Resources: Shaping JSON Responses the Right Way

Laravel API Resources: Shaping JSON Responses the Right Way

Blog Summary

Returning a model straight from a controller turns your database schema into your public API. Build a Laravel API resource step by step: whenLoaded, conditional fields, pagination meta and the gotchas.

Read more
  • 24
  • 50
  • 17

Laravel's Service Container Explained: Who Calls new on Your Classes?

Laravel's Service Container Explained: Who Calls new on Your Classes?

Blog Summary

You never create your controllers, yet they arrive fully built. Here's how Laravel's service container auto-wires classes, when to use bind, singleton or scoped, and why it makes mocking easy.

Read more
  • 133
  • 123
  • 24

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