Laravel IoC, mocking, tests - practical example

Practical example on how to use Laravel's IoC container to mock external API call in our unit tests. This post shows how to set up our classes for easy testability and then mock then in our unit tests.

Serializing Eloquent Resources to an Array

Laravel resources are a great way to transform your database models into an API response. But they can be tricky when all you need is for the resource to return a recursively serialized array which wouldn't be returned directly in a http response

Laravel and n + 1 problem

How to deal with an inherited Laravel project that has numerous n + 1 query problems spread throughout it.

Thoughts on TypeScript

TypeScript's rise in the JavaScript world is undeniable. I've been dabbling in it for the past year and recently rewrote my blog using TS. Here are some thoughts