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

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
  • 40
  • 88
  • 5

Mass Assignment in Laravel: The Bug Hiding in Your create() Call

Mass Assignment in Laravel: The Bug Hiding in Your create() Call

Blog Summary

One extra field in a registration request, is_admin=1, and a stranger is an administrator. How mass assignment works in Laravel, why $guarded = [] plus $request->all() is a trap, and the habits that close the hole.

Read more
  • 135
  • 37
  • 17

TypeScript for PHP Developers: The Parts That Actually Matter

TypeScript for PHP Developers: The Parts That Actually Matter

Blog Summary

PHP checks your types while the code runs. TypeScript checks them before it runs, then throws them away. That one difference explains almost everything a PHP developer needs to know about TypeScript.

Read more
  • 108
  • 67
  • 13

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
  • 18
  • 82
  • 20

Five JavaScript Async Mistakes That Bite Even Experienced Developers

Five JavaScript Async Mistakes That Bite Even Experienced Developers

Blog Summary

async/await makes code read top to bottom, but it doesn't always run that way. Missing awaits, forEach with async, needless sequential calls, unhandled rejections and race conditions: what goes wrong and the fix for each.

Read more
  • 42
  • 42
  • 6

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
  • 60
  • 96
  • 17

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