Clever vs insightful code
We talk about cleverness as if it’s Just Bad, such as “clever code is harder to debug”. That’s going too far. Cleverness can lead to faster, safer, even clearer code.
Read more [www.hillelwayne.com]
We talk about cleverness as if it’s Just Bad, such as “clever code is harder to debug”. That’s going too far. Cleverness can lead to faster, safer, even clearer code.
Read more [www.hillelwayne.com]
Alex explains how we use Satis to give users of paid Spatie products access to private repos.
Read more [alexvanderbist.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 publishes a super resourceful and practical newsletter. A must for anyone in the Laravel space"
Matt Stauffer on how to minimize Vue's impact on the Core Web Vitals?
Read more [mattstauffer.com]
My colleague Brent shares some thoughts on possible improvements to handling config values.
Read more [stitcher.io]
– www.juststeveking.uk - submitted by Steve McDougall
Laravel transporter is an easy to use wrapper around Laravel PendingRequest that allows you to define requests as classes, and override options at run time when you need to.
Read more [www.juststeveking.uk]
In this blog post, Jeffrey Way explains why and how he refactored Laracasts from a traditional server rendered app to an SPA using Inertia.
Read more [laracasts.com]
Matthias Noback wrote down some good testing advice.
Read more [matthiasnoback.nl]
Last week we released a new version of spatie/laravel-event-sourcing. Version 5 is probably one of the largest releases since the beginning of the package. We've worked several months on it and have been testing it extensively already in our own projects.
In this post, my colleague Brent will walk you through all the changes and new functionalities.
Read more [stitcher.io]
Our team has released a new Laravel package: spatie/laravel-artisan-dispatchable. This package allows you to dispatch any job from an artisan command.
In this blog post, I'd like to explain why we created the package and how you can use it.
– ryangjchandler.co.uk - submitted by Ryan Chandler
Here are a few tips and tricks that you can use in your Alpine 3.x components.
Read more [ryangjchandler.co.uk]
Regular expressions are powerful, PHP but they are not known to be readable, and more often than not, maintaining a regular expression is not a straight-forward task. Here are some tips to improve and write better regular expressions in PHP.
Read more [php.watch]
I'm thrilled to announce that our premium course Event Sourcing in Laravel has just launched.
If you ever wanted to get started with event sourcing, this is the course for you. It contains a beautifully designed ebook, two hours worth of videos, and a demo Laravel app containing an event-sourced shopping cart.
Event sourcing isn't an all or nothing approach. Even if your project doesn't need the full power of event sourcing, you can still benefit from knowing and implementing best practices from the event sourcing world.
We're offering a 20% launch discount for the next two weeks to celebrate this release.
In this stream, you can see my colleague Brent and I launch the course, and answer questions from the audience.
Jess Archer show a nice approach on how to use exception in the HTTP layer.
Read more [jessarcher.com]
Mohamed shows how you can deal with N+1 problems using the $with model attribute and the newly added Model::preventLazyLoading() method.
In a new video, Shruti Balasa explains this basic concept of CSS.
Benjamin Eberlei tells the story of a performance mistake that is quickly made even by experienced developers.
Read more [tideways.com]
Mohammed Said created another kick ass video, this time on how Laravel handles DB connections.
Tobias explains how you can make this operation very fast even if your table has several million records.
Read more [tpetry.me]
A couple of years ago, Ignition became the default error page in Laravel.
Ignition provided a vastly improved design over Whoops: it brought Laravel specific niceties (such as showing the routing, queries) and the ability to display and even run solutions (e.g. generating an app key).
At Spatie, we think we can improve the design of Ignition even more. Our initial plan was to release this new design in tandem with Laravel 9 as a big bang surprise release. We've changed our mind on this because we'd like to have feedback from the community.
In this blog post, I'd like to share our ideas and plans for Ignition.
Ross Wintle dissected the recent RFC for auto-capturing multi-statement closures in PHP.
Read more [rosswintle.uk]