Captain Hook



Custom authentication in Laravel

  • avatar
  • 403 Views
  • 10 mins read
Preview image

Laravel ships with a solid authentication system out of the box, and most projects are well served by it. But there are situations where you need to authenticate users against something completely different: a legacy database, an external API, an LDAP server, or some other custom data source. Laravel's authentication system is built around a set of contracts and driver hooks that make this surprisingly straightforward to implement.

Low power consumption mode in Arduino

  • avatar
  • 264 Views
  • 11 mins read
Preview image

Battery-powered Arduino projects have one common enemy: a board that drains power even when it has nothing to do. By default, Arduino runs at full speed continuously, burning through battery charge whether it's actively doing something or just waiting. Low power mode solves this by putting the microcontroller to sleep when it's idle, waking it up only when there's actual work to do. The concept is straightforward: the microcontroller spends most of its time asleep, wakes up to do something useful (take a sensor reading, send data, check a button), then goes back to sleep immediately.

Keep your codebase clean with Git hooks

  • avatar
  • 117 Views
  • 9 mins read
Preview image

Every developer has been there: you push a commit, CI fails, and it turns out there was a linting error, a forgotten debug statement, or a test that nobody ran. Pre-commit hooks are the safety net that catches these problems before they ever leave your machine. They are not a complex feature or an advanced Git topic. They are just scripts, and once you understand how they work, you will find yourself reaching for them on every project.

 Join Our Monthly Newsletter

Get the latest news and popular articles to your inbox every month

We never send SPAM nor unsolicited emails