Skip to content

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]

Benefits of writing clean, maintainable code.

– jump24.co.uk - submitted by jamie peters

We all strive to write good code when we jump onto a project but sometimes do you wonder why?

The post covers

  • Why you should write clean code
  • Techniques for writing cleaner code

The techniques here are useful for all level of developers and worth a quick skim over as we all nothing wrong with a quick refresher

Read more [jump24.co.uk]