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

Stop Running Tinker in Production: Artisan Commands for Everyday Admin Tasks

Stop Running Tinker in Production: Artisan Commands for Everyday Admin Tasks

Blog Summary

Typing queries into Tinker on a live server is how admin chores turn into incidents. Here's how to build a proper Artisan command with a dry run, confirmations, a progress bar, scheduling and a test.

Read more
  • 80
  • 126
  • 3

Value Objects in PHP: Small Classes That Prevent Big Bugs

Value Objects in PHP: Small Classes That Prevent Big Bugs

Blog Summary

An amount in the wrong unit, a swapped string argument, a lease that ends before it starts. Value objects like Money, Email and DateRange turn these bugs into errors on the exact line that caused them.

Read more
  • 137
  • 105
  • 17

Laravel Policies and Gates: Authorization Done Properly

Laravel Policies and Gates: Authorization Done Properly

Blog Summary

Copy-pasted if-checks are how authorization bugs are born. Here's how to move every rule into Laravel policies and gates, avoid the before() trap, filter lists properly and test who gets denied.

Read more
  • 94
  • 65
  • 25

PHP Performance Mistakes Hiding in Your Loops and Queries

PHP Performance Mistakes Hiding in Your Loops and Queries

Blog Summary

Slow PHP is rarely slow because of PHP. It's usually a query inside a loop, a lookup repeated ten thousand times, or a whole table loaded into memory. Six common mistakes with before-and-after code, plus one myth you can stop worrying about.

Read more
  • 97
  • 44
  • 11

Laravel Caching Strategies That Actually Help (and the Ones That Bite)

Laravel Caching Strategies That Actually Help (and the Ones That Bite)

Blog Summary

Caching is the quickest way to make a slow Laravel app fast, and the quickest way to make a correct one wrong. Cache keys, invalidation on model events, tags, stale-while-revalidate, warming, and what you should never cache.

Read more
  • 109
  • 127
  • 19

SOLID Principles With Practical PHP Examples (and When to Ignore Them)

SOLID Principles With Practical PHP Examples (and When to Ignore Them)

Blog Summary

SOLID gets taught with shapes and animals, then applied with fifteen interfaces for a feature that needed one class. Here are the five principles with real PHP examples, the smell each one fixes, and when to leave them alone.

Read more
  • 123
  • 88
  • 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