Laravel Custom Query Builders Over Scopes
While scopes are useful for simple queries, custom query builders are preferred for complex or frequently used queries.
Read more [blog.oussama-mater.tech]
While scopes are useful for simple queries, custom query builders are preferred for complex or frequently used queries.
Read more [blog.oussama-mater.tech]
– tomasvotruba.com – Edit
Tomas shares his approach to get the most out of mocks, drop dead code, and make tests more valuable.
Read more [tomasvotruba.com]
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.
"Freek’s newsletter is one of the best ways to stay updated with the Laravel and PHP ecosystem. It consistently highlights useful packages, tools, and ideas from the community, especially the amazing work coming from Spatie. As a Laravel developer building SaaS and web platforms, I find it extremely helpful to discover practical tools and insights that improve my development workflow."
– davorminchorov.com - submitted by Davor Minchorov – Edit
Learn about data transfer objects, why they are useful and why it's better to use them over arrays.
Read more [davorminchorov.com]
– alsterholm.com - submitted by Andreas Alsterholm – Edit
A blog post explaining some benefits (and drawbacks) of using custom Eloquent collections.
Read more [alsterholm.com]
Spoiler: it doesn't really matter anymore as long as you're using a modern version of PHP
Read more [dev.to]
– – Edit
This site offers some good alternatives for modals
Read more []
– backpackforlaravel.com - submitted by Karan Datwani – Edit
Read more [backpackforlaravel.com]
– geoligard.com - submitted by Goran Popović – Edit
See how to easily modify and override methods found in the framework's Request class in order to handle specific routes with sizeable payloads.
Read more [geoligard.com]
– jump24.co.uk - submitted by jamie peters – Edit
We all strive to write good code when we jump onto a project but sometimes do you wonder why?
The post covers
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]
– wire-elements.dev - submitted by Philo – Edit
Livewire Strict helps enforce security measures and prevents you from having unprotected sensitive public properties.
Read more [wire-elements.dev]
Some great insights by Kent Beck
Read more [tidyfirst.substack.com]
– hakanaktas.com.tr - submitted by Hakan – Edit
A pragmatic approach to avoiding early optimizations
Read more [hakanaktas.com.tr]
– davorminchorov.com - submitted by Davor Minchorov – Edit
Learn about the differences between thinking in terms of data (CRUD) vs thinking in terms of business processes (behaviour) and how it affects code maintainability.
Read more [davorminchorov.com]
– acairns.co.uk - submitted by Andrew Cairns – Edit
Explains what the Code Smell 'Primitive Obsession' is, the damage it can cause to your codebase, how to spot it and - how to fix it!
Read more [acairns.co.uk]
– seankegel.com - submitted by Sean Kegel – Edit
Use tappable scopes in Laravel to break down complex queries into reusable pieces without needing to use magic query scopes in Laravel.
Read more [seankegel.com]
– lukapeharda.com - submitted by Luka Peharda – Edit
Read how I fixed performance issues when refactoring and optimising legacy code with method signature inconsistency, done unintentionally by developer
Read more [lukapeharda.com]
– atlas.dev - submitted by Mitchell Davis – Edit
This article outlines why we use Inertia with Laravel at our agency in 2024, and makes the case for why you should consider using Inertia too.
Read more [atlas.dev]
You should consider using the handle() method for dependency injection in Artisan commands, rather than __construct().
Read more [ides.dev]
– ahmedshamim.com - submitted by Ahmed Shamim – Edit
Laravel provides some excellent 'Retry' mechanisms out of the box for handling transient failures! In this article, we'll learn about these mechanisms to build a reliable system using Laravel!
Read more [ahmedshamim.com]
– qirolab.com - submitted by Harish Kumar – Edit
Laravel Clockwork is a powerful debugging and profiling tool seamlessly integrated into the Laravel framework. With its real-time web interface, Clockwork provides developers with instant insights into their application's runtime behavior.
Read more [qirolab.com]