Hatthi retweeted
#Laravel Tip
Did you know about... `whereAny()` method that can search multiple columns using `OR` logic.👇
Hatthi retweeted
Laravel Tips 💡
1️⃣ Use isDirty() before saving to prevent unnecessary database writes. Combine getOriginal() with wasChanged() for precise audit logging. getChanges() is handy for debugging or event-driven change tracking.
Hatthi retweeted
the api isn’t perfect, but doing async in php is actually pretty easy with "pcntl_fork". it’s one of the drivers of laravel’s concurrency helper and and powers spatie’s fork package too. ✨
Hatthi retweeted
#Laravel Tip
Did you know... You can set default route parameters using defaults() — useful for localization or fallback values.
Hatthi retweeted
#Laravel Tip
Did you know... You can fetch a single column directly with value() — simpler & faster than first().
Hatthi retweeted
#Laravel Tip
Did you know.... tap() = Tweak and Return 🪄
Yes, Laravel's tap() lets you modify an object and return it — perfect for clean, chainable code.
Hatthi retweeted
Laravel Locations provides a large database with Country, City, Area, Language and Currency models for your apps 🌐 - madewithlaravel.com/laravel-…
Hatthi retweeted
Laravel Tip: Simplify your code by leveraging Eloquent's relationship method.
Cleaners, more expressive, and works with any "belongs to" relationship.
Hatthi retweeted
a key benefit of the actions pattern is that it simplifies audit logging: just track what got created / updated end of each action 💚
since all system changes happen only through actions, you can confidently log there—no need to track changes elsewhere 😘
love this pattern
Hatthi retweeted
Turn one Laravel app – into 2 mobile apps
🎉 With NativePHP for mobile
📱 iOS available today
🤖 Android support coming May 2
🧵
Hatthi retweeted
We shipped a cache memoization feature to Laravel today. 🚀
Cache::memo let's you decorate any cache store with a memoized wrapper, allowing you to temporarily store resolved cache values in memory during a single request or job execution. This prevents repeated cache hits within the same execution
This week's banger is courtesy of @timacdonald87.
laravel.com/docs/12.x/cache#…
My new video.
Queues in Laravel: Main Things You Need to Know (Two Examples)
buff.ly/6ti4MpZ
I came up with a challenge to myself: take a complex topic and try to explain/demonstrate the MAIN things in 10-15 minutes.
I imagine it as a series.
How did I do this time?
Hatthi retweeted
The Laravel + Vue starter kit has been upgraded to Tailwind 4. 🎨
laravel.com/starter-kits
















