performance

All my posts about performance.

Pass by Reference vs Pass by Value in PHP: What’s the REAL Difference?

youtu.be - submitted by Bert De Swaef

In this short video, we break down the key differences between Pass by Value and Pass by Reference in PHP. 🚀 Understanding these two concepts is essential for writing efficient and bug-free code. Learn how PHP handles variables when passed to functions, and see how small changes in your code can have a BIG impact on performance and behavior! 🔍

Read more [youtu.be]

Join 9,500+ smart developers

Get my monthly newsletter with what I learn from running Spatie, building Oh Dear, and maintaining 300+ open source packages. Practical takes on Laravel, PHP, and AI that you can actually use.

No spam. Unsubscribe anytime. You can also follow me on X.

Optimizing Eloquent: Accessor Caching and Value Objects in Laravel

www.harrisrafto.eu - submitted by Harris Raftopoulos

Laravel's accessor caching with shouldCache() boosts performance by preventing repetitive computations for expensive accessors. Additionally, you can work with complex data like addresses using value objects, and Laravel will auto-sync changes back to the model. This improves code efficiency and maintainability, especially for structured data.

Read more [www.harrisrafto.eu]

Caching Strategies In Laravel

tighten.com - submitted by Jamison Valenta

When it comes to caching, we have to balance performance gains with increased cost of complexity and infrastructure. In our latest post, we talk through a few different caching strategies and approaches so you know the best caching tool for any situation.

Read more [tighten.com]