Screenshot of Home Assistant showing the automation for making the desk stand up
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 π
11.02.2025 09:16 β π 2 π 0 π¬ 1 π 0
Supercharging Rate Limiting with Cloudflare - James Brooks
Enhance Laravelβs rate limiting by using Cloudflareβs Web Application Firewall (WAF) to block excessive requests at the edge, reducing server load and improving API performance.
In @jessarcher.bsky.social's Nightwatch talk she mentioned how we paired Laravel's rate limiting with Cloudflare to completely side step our servers from handling "dead requests" on Forge. Here's how you can do the same thing!
james.brooks.page/blog/superch...
04.02.2025 19:05 β π 22 π 3 π¬ 2 π 1
An example of named parameters passed into a method via spreading operator on an array.
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 π
13.01.2025 13:43 β π 15 π 2 π¬ 2 π 1
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.
07.01.2025 13:56 β π 0 π 0 π¬ 0 π 0
So why not `yes-named-argument` ? π
10.12.2024 09:04 β π 0 π 0 π¬ 0 π 0
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)
10.12.2024 08:59 β π 2 π 0 π¬ 0 π 0