Skip to content

Blog

Page 5 of 77 - keep going...

Use PHP Named Parameters for Readability

Having too many parameters for a method signature is a sign of a method that is doing too much. But, what can be done to make this more readable if you’re forced to stick with it? Let’s see an example using named parameters.

Apr 21, 2026 2 min read #php

Laravel 201 Created JSON With Location Header

Each API seems to be different. However, there are some best practices that we should all try to follow.

One of those that I really like is the 201 Created HTTP response. If the object is created immediately, you may even return the full object contents.

In some cases, we don’t have the data or don’t want to return the full payload. We can return null with a location header. Here’s how to do that with Laravel.

Mar 12, 2026 1 min read #laravel

Fixing PhpStorm when Git Stops Responding

PhpStorm suddenly stopped recognizing my git repository. I cleared the cache, restarted the IDE, but nothing helped. I jumped to my terminal, ran git from the command line, and everything worked fine there. Confusing, right?

Let me explain why this happened and how I fixed it for good.

Feb 26, 2026 2 min read #git #macos #phpstorm

Why I'm Not Writing About AI Yet

AI is everywhere - and it has been for the last months… the last year(s)… I even use it now a lot as a tool for my development. So why haven’t I published AI guidance or written about it at all?

It’s really a simple reason. And it’s not what you think probably. I’m not a hater. It’s extreme love of AI and technology that makes me wait. Let me explain.

Feb 18, 2026 3 min read #programming

Get the benefits of final classes in Rector

Rector is a powerful tool for automated code refactoring and upgrades. Among its many features, it can enforce coding standards and apply fixes across your entire codebase.

One setting I find particularly useful is ->withTreatClassesAsFinal(). When enabled, Rector analyzes your code as if all classes were declared final, even when they’re not.

Jan 15, 2026 1 min read #ide-and-web-dev-tools #php