🌐 US-Proxy
class="flex h-full bg-zinc-50 dark:bg-black" x-data="{ theme: localStorage.getItem('theme') || 'system', setTheme(theme) { this.theme = theme; localStorage.setItem('theme', theme); document.documentElement.classList.remove('light', 'dark'); if (theme === 'system') { const prefersDark = window.matchMedia('(prefers-color-scheme: dark)').matches; document.documentElement.classList.add(prefersDark ? 'dark' : 'light'); } else { document.documentElement.classList.add(theme); } }, init() { this.setTheme(this.theme); window.matchMedia('(prefers-color-scheme: dark)').addEventListener('change', e => { if (this.theme === 'system') { this.setTheme('system'); } }); } }" x-init="init()">

Technical content mostly focused at getting unstuck.

These articles are a diary of solutions to my blockers as well as what I observe some programmers get stuck on, and other fun technical write-ups.

Writing blazing fast Laravel tests

No one wants slow tests. This is especially true if you have a large test suite with lots of database interactions.

Unique field validation in Laravel

When building Laravel applications, and perhaps in any web application, validating user input is important. A common requirement is ensuring...