Oliver Nybroe
nybroe.dev
Oliver Nybroe
@nybroe.dev
Software Engineer at Laravel
I automated my standing up desk, so now it will automatically move up randomly every 2 hour 🤣

I keep forgetting through the day to raise my desk, but now I will be forced to do it 🎉
February 11, 2025 at 9:16 AM
A cool trick with named parameters in PHP is that you can actually pass an array with key names as the parameters and use the spread operator 👀
January 13, 2025 at 1:43 PM
It's sometimes important to remember the differences between `all` and `toArray` in collections in Laravel, as in most cases it is actually `all` method you want to call.

Converting a model with all loaded relations to an array can be expensive.
January 7, 2025 at 1:56 PM
I often see people navigating to methods in PhpStorm by using search in the file, however there is a much nicer way of doing it 👀

Default keybind is cmd + F12 (rebound mine to cmd + M)
December 10, 2024 at 8:59 AM