Join thousands of developers

Every two weeks, I share practical tips, tutorials, and behind-the-scenes insights from maintaining 300+ open source packages.

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

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]

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]