Naming things is suddenly easier
Naming things is good skill to have for any programmer.
Read more [masteringlaravel.io]
Naming things is good skill to have for any programmer.
Read more [masteringlaravel.io]
Beware of "Other"!
Read more [devblogs.microsoft.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."
– ashallendesign.co.uk - submitted by Ash Allen
Read about how to use the Illuminate\Console\Prohibitable trait to prevent destructive commands from running in your Laravel application. We'll also look at how to prevent your own custom Artisan commands from running using this trait.
Read more [ashallendesign.co.uk]
Pseudo-types like callable and iterable may seem convenient at first glance, but they introduce ambiguities and make code harder to analyze.
Read more [f2r.github.io]
– clig.dev
Good naming, consistency, clear communication, and discoverability. These are things that do not only apply to command line programs, but to general development as well.
Read more [clig.dev]
Stephen Rees-Carter tells how hardcoding admin domains in code can lead to security vulnerabilities
Read more [securinglaravel.com]
Postgres has many nuances and best practices that are important to understand.
Read more [challahscript.com]
While scopes are useful for simple queries, custom query builders are preferred for complex or frequently used queries.
Read more [blog.oussama-mater.tech]
Tomas shares his approach to get the most out of mocks, drop dead code, and make tests more valuable.
Read more [tomasvotruba.com]
– davorminchorov.com - submitted by Davor Minchorov
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
A blog post explaining some benefits (and drawbacks) of using custom Eloquent collections.
Read more [alsterholm.com]
– dev.to
Spoiler: it doesn't really matter anymore as long as you're using a modern version of PHP
Read more [dev.to]
This site offers some good alternatives for modals
Read more []
– backpackforlaravel.com - submitted by Karan Datwani
Read more [backpackforlaravel.com]
– geoligard.com - submitted by Goran Popović
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
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
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
A pragmatic approach to avoiding early optimizations
Read more [hakanaktas.com.tr]
– davorminchorov.com - submitted by Davor Minchorov
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]