Sometimes, no matter how senior you are, little issues like this can humble you. I recently faced a confusing issue where I was expecting a relationship to give me a User object, but instead, it just gave me a number! After two days of scratching my head, I finally figured out what went wrong.
PHP
Laravel’s parallel testing on multiple DB connections
Pretty cool that this behaviour can be customized easily. Read more