If you need to copy text to the clipboard with JavaScript, Alpine.js makes this super easy with the help of a simple plugin.
If you're wrapping foreach loops around if statements in Blade, here's a much cleaner way to achieve the same thing with a single directive.
Using accessors to return Enums from Laravel model attributes? There's an easier way.
If you're working with Carbon dates, chances are your tests are going to fail at some point unless you're sure of the value returned from Carbon's now() function.
If you have (or want to implement) forms that autosave as a user types, there's a really important consideration to make when making requests to an API — the amount of requests you send.
Sure, it's pretty simple. But you're going to need check at some point.
Friendships between users in an app is a pretty easy concept to grasp (you add me and we're friends), but to implement it properly isn't as straightforward.
If you've tried to use `orderBy` on a previously ordered query in Laravel, you'll probably find it doesn't work. There's a great reason for that, which we'll explain at the end of the post.
By default, Laravel Valet doesn't use HTTPS. That's great, but if anything you're developing with locally requires HTTPS to be enabled, you're going to need it.
I use Laravel Valet for day-to-day development, and I recently got stuck getting Laravel Mix HMR (Hot Module Replacement) to work while I had HTTPS enabled through the `valet secure` command.