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

File Upload Security Mistakes in PHP Apps (and the Safe Laravel Way)

File Upload Security Mistakes in PHP Apps (and the Safe Laravel Way)

Blog Summary

An upload form lets a stranger put a file on your server. Five classic PHP upload mistakes, from trusting the MIME type to storing files in the web root, why each one is dangerous, and the safe Laravel approach.

Read more
  • 115
  • 27
  • 24

Database Normalization Explained With a Real Example: Tenants, Units and Contracts

Database Normalization Explained With a Real Example: Tenants, Units and Contracts

Blog Summary

Every messy database starts as a spreadsheet. Take a tenancy contracts sheet through 1NF, 2NF and 3NF step by step, see the anomalies each form removes, and learn when denormalizing on purpose is the right call.

Read more
  • 24
  • 63
  • 14

Laravel Collections: Ten Methods That Replace Your foreach Loops

Laravel Collections: Ten Methods That Replace Your foreach Loops

Blog Summary

Most loops in application code do one of ten jobs, and Laravel collections have a named method for each. Here are map, filter, keyBy, partition, pipe and five more, with the gotchas and the cases where a loop still wins.

Read more
  • 18
  • 55
  • 16

Timezones: The Bug That Waits Patiently for Daylight Saving Time

Timezones: The Bug That Waits Patiently for Daylight Saving Time

Blog Summary

Timezone bugs pass review, pass tests and wait months for the clocks to change. Seven common mistakes, from storing local time to treating dates as timestamps, and the Carbon code that fixes each one.

Read more
  • 75
  • 117
  • 15

PHP Enums in Laravel: Replacing Magic Strings for Good

PHP Enums in Laravel: Replacing Magic Strings for Good

Blog Summary

A status check comparing against 'actve' can sit in your code for months and never be true. Backed enums, Eloquent casts, Rule::enum and methods on enums turn those magic strings into something PHP checks for you.

Read more
  • 82
  • 29
  • 21

Laravel Middleware Explained With Real Use Cases

Laravel Middleware Explained With Real Use Cases

Blog Summary

Every request walks through a series of doors before it reaches your controller. Here's how Laravel middleware works: before and after, groups, parameters, terminable middleware, and real examples you can use.

Read more
  • 10
  • 139
  • 5

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