Guardrails for AI-Assisted Development in Laravel
Guardrails have always been an important aspect of software engineering. At the beginning of my career, I was fully focused on developing new features and fixing bugs. But when a new senior joined...
Guardrails have always been an important aspect of software engineering. At the beginning of my career, I was fully focused on developing new features and fixing bugs. But when a new senior joined...
When you want to update a record and create it when it doesn't exist, you can use the updateOrCreate or updateOrInsert method in Laravel.
The so-called "upsert" methods....
In Laravel it is seen as good practice to dependency inject the Illuminuate\Http\Request object in your methods when possible, instead of using the request() helper.
One of...
In this post I just want to show a very small trick I came across recently.
You probably know the internal PHP function str_replace.
When looking at the documentation, we can see that...