If you've moved to Vite and are using @TightenCo's Ziggy, you may want a way to automatically keep your ziggy.js file up to date 👀
Here's a little plugin I've thrown together to automatically update that file when your routes files change 👍
https://t.co/PuGIxp8G2hhttps://t.co/jAIbmM0oGF
⚡️ Did you know that Laravel now has first-party directives for conditionally outputting disabled, checked and selected attributes on HTML elements? Much nicer than if directives or ternaries. https://t.co/5vFsO9JER2
🔥 #Laravel Tip: Rate-limiting is not only for throttling entire requests. You can also use it to throttle methods or parts of your code, which can be really useful when you need to protect things against spikes e.g. the DB. https://t.co/1pN04w9WXW
TIL about secret columns in a new version of MySQL 8. What are they? They are columns that do not show up in a SELECT * statement. They must be explicitly declared. (Thanks to @mmartin_joo 🥳)
Here's an example in Laravel: https://t.co/NN4ftjN1O7
💡 CSS Tip!
Extend the background of an element outside of its container to cover the full screen width
✅ No extra element
✅ No pseudo-element
✅ No overflow issue
✅ Only 2 CSS declarations
Demo: https://t.co/EBLNWaSlVn via @CodePen#CSShttps://t.co/ZFyNjaN9b4
Quick #laravel tip. Use whereIntegerInRaw() instead of whereIn() if you are querying against a large array of integers.
One of my test queries went from 25 seconds to 200ms.
#laraveltips
Recently learned about fluent JSON testing in Laravel, basically being able to easily test an expected API's response down to the attributes + their values! https://t.co/eCnSRClWSb