Mixing event sourcing in a traditional Laravel app original
by Freek Van der Herten – 10 minute read – Edit
by Freek Van der Herten – 10 minute read – Edit
Composer version 2 will be mostly compatible with your existing workflows, while bringing some more great new features.
Read more [php.watch]
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.
"As a Laravel developer, this is the one newsletter I most look forward to. Freek has a talent for distilling packages or techniques down to something immediately useful - one tip can save you hours and even weeks. It's concise and practical and highly relevant."
– Edit
Did you know that since PHP 7.4, it's possible to use the spread operator in arrays? 👨🏻🔬 pic.twitter.com/Wg6Ouc5OYj
— NUNO MADURO (@enunomaduro) April 10, 2020
– twitter.com – Edit
🧙♂️ One of my favorite Laravel 7 features is query time casting. This is super handy when using a subquery to get extra "non-model" data, such as a date. By default it would be a string. This feature lets you cast it to a Carbon instance "on the fly". 👌https://t.co/Kd94iMsomA pic.twitter.com/VIzowGy3um
— Jonathan Reinink (@reinink) April 15, 2020
Read more [twitter.com]
– nunomaduro.com – Edit
My buddy Nuno is working on an interesting project to improve the experience of writing tests.
Read more [nunomaduro.com]
– laravel-news.com – Edit
At Laravel News, Stefan Bauer shared some cool Eloquent tips and tricks
Read more [laravel-news.com]
by Freek Van der Herten – 2 minute read – Edit
In this post, I'd like to show you a quick demo of our new package called laravel-log-dumper.
– Edit
🔥 You can use @laravelphp’s Blade components for layouts too. Way cleaner than extending imho. pic.twitter.com/Ol29sCsOci
— Freek Van der Herten (@freekmurze) April 10, 2020
by Freek Van der Herten – 11 minute read – Edit
Up until a few days ago, the real-time UI of Oh Dear (an uptime monitoring SaaS I run) was powered with web sockets. We recently replaced this with Livewire components.
In this blog post, I'd like to explain why and how we did that.
I'm going to assume that you already know what Livewire is. If not, head over to the Livewire docs. There's even a short video course on there. In short, Livewire enables you to create dynamic UIs using server-rendered partials.
– driesvints.com - submitted by Dries Vints – Edit
Dries Vints wrote a bost on why he uses single action controllers.
Read more [driesvints.com]
by Freek Van der Herten – 7 minute read – Edit
A couple of weeks ago, we released Mailcoach: an affordable, self-hosted solution to send out newsletters. Installing it into an existing Laravel application is quite easy if you have experience with Laravel.
We wanted to make getting started with Mailcoach easier for those without experience with Laravel or PHP. Using our a 1-click-installer on the Digital Ocean marketplace you can set up an entire Mailcoach installation in a couple of minutes.
In this blogpost I'd like to show you how you can use the installer and how we built it.
– medium.com - submitted by Pavol Perdik – Edit
In this article Pavol Perdik writes about the native PostgreSQL type daterange and how to easily use it in Laravel.
Read more [medium.com]
by Freek Van der Herten – 3 minute read – Edit
One of my favourite new features of Laravel 7 are Blade components. The allow you to define custom html tags that are backed by Blade partials. In this blogpost I'd like to show you a couple very handy components.
This blogpost assumes that you already know how you can use Blade components.
– www.sigerr.org – Edit
Julien Bourdeau explains how you can use the auto_prepend_file option of PHP.
Read more [www.sigerr.org]
– stitcher.io – Edit
This is what would happen to PHP if my colleague Brent's will was law.
Read more [stitcher.io]
A must read by Frank de Jonghe on testing.
Read more [blog.frankdejonge.nl]
by Freek Van der Herten – 16 minute read – Edit
Together with my buddy Mattias Geniar, I run Oh Dear, an uptime checker service on steroids.
Unlike most uptime trackers, Oh Dear doesn't only check your homepage, but every single page of your site. When we detect a broken link or some mixed content, we send a notification. Oh, and we provide status pages, like this one from Laravel and Flare too.
In this blog post, I'd like to show you how we use Livewire to render some complex forms in the UI of Oh Dear.
Seb explains why it's perfectly safe to drop a major version of PHP without tagging a new major version of a package.
Read more [sebastiandedeyne.com]
– stitcher.io – Edit
Brent did a cool experiment with ReactPHP and event sourcing.
Read more [stitcher.io]
by Freek Van der Herten – 4 minute read – Edit