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

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
  • 62
  • 150
  • 18

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
  • 38
  • 133
  • 21

What Actually Happens When You Run composer install

What Actually Happens When You Run composer install

Blog Summary

It's the PHP command you run most and read least. Follow composer install step by step: the lock file fork, platform checks, the autoloader, Laravel's scripts, semantic versioning and why the lock file belongs in Git.

Read more
  • 49
  • 41
  • 11

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
  • 68
  • 40
  • 12

Unicode and UTF-8: Why Your Text Turns Into Question Marks

Unicode and UTF-8: Why Your Text Turns Into Question Marks

Blog Summary

An Arabic name goes in, four question marks come out. Encoding bugs leave fingerprints: here's how to read them, why MySQL's utf8 isn't UTF-8, and the PHP string traps that cut letters in half.

Read more
  • 109
  • 25
  • 5

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
  • 111
  • 138
  • 14

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