Simplifying work with custom stubs in Laravel
– blog.genijaho.dev - submitted by Geni Jaho – Edit
Stubs are fake implementations of interfaces or classes that simulate the behavior of real services.
Read more [blog.genijaho.dev]
– blog.genijaho.dev - submitted by Geni Jaho – Edit
Stubs are fake implementations of interfaces or classes that simulate the behavior of real services.
Read more [blog.genijaho.dev]
I’m proud to announce that we’ve released a new package called spatie/laravel-passkeys that makes adding passkeys to a Laravel app as easy as it can be.
Read more [spatie.be]
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."
Here's a fun little sideproject from my colleague Seb. This web app is built with Laravel, Alpine.js, and Tailwind CSS. Content is stored in Markdown files and loaded with our sheets package.
Read more [php-operators.com]
– muhammedsari.me - submitted by Muhammed Sari – Edit
Group by type or context / process? One of these methods will crush your project's growth. Find out which!
Read more [muhammedsari.me]
– muhammedsari.me - submitted by Muhammed Sari – Edit
Everyone knows the classic decorator pattern—but have you met its duck-typed cousin? Discover how to extend Laravel behavior without interfaces, the clever way.
Read more [muhammedsari.me]
– liamhammett.com - submitted by Liam Hammett – Edit
Find out how we can champion PHP as a community and help bring it to the attention of more developers
Read more [liamhammett.com]
– liamduckett.com - submitted by Liam – Edit
A short post about my preferences around type safety and static analysis.
Read more [liamduckett.com]
– bert.gent - submitted by Bert De Swaef – Edit
If you’ve been working with Laravel for a little while, you’ve probably come across observers and event listeners. But what is the difference?
Read more [bert.gent]
Laravel’s new fillAndInsert() method enables bulk insertions while applying model casting, timestamps, and UUID generation.
Read more [www.harrisrafto.eu]
by Freek Van der Herten – 6 minute read – Edit
A couple of years ago, Laravel introduced a great feature which allows to run PHPUnit / Pest tests in parallel. This results in a big boost in performance.
By default, it determines the concurrency level by taking a look at the number of CPU cores your machine has. So, if you're using a modern Mac that has 10 CPU cores, it will run 10 tests at the same time, greatly cutting down on the time your testsuite needs to run completely.
A default runner on GitHub doesn't have that many cores, so you can't leverage parallel testing as good as in your typical local environments.
In this blog post, I'd like to show you a way of running your tests on GitHub, by splitting them up in small chunks that can run concurrently.
We use this technique at Oh Dear to cut down the running time of our vast testsuite from 16 minutes to only just 4. In this blog post all examples will come from the Oh Dear code base.
– aaronfrancis.com - submitted by Aaron Francis – Edit
Transforming and serving images from Laravel in a cache-friendly way.
Read more [aaronfrancis.com]
– phpmemo.com – Edit
Don't use PHP for this. Still fun to do though
Read more [phpmemo.com]
An article explaining PHP's yield keyword and how it can be use in place of return to easily build iterators.
Read more [ides.dev]
– matthiasweiss.at – Edit
Here's how you can use our Laravel Data package.
Read more [matthiasweiss.at]
– stephenjude.me - submitted by STEPHEN JUDE – Edit
Read more [stephenjude.me]
– blog.lepine.pro – Edit
Some very cool numbers on the PHP ecosystem, gathered by Jean-François Lépin.
Read more [blog.lepine.pro]
– ashallendesign.co.uk - submitted by Ash Allen – Edit
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]
– tighten.com - submitted by Kayla Helmick – Edit
Learn how to install and configure Typesense in a Laravel app, then optimize search by sorting records, using filters, adjusting typo tolerance, accessing raw responses, and leveraging facets for better filtering.
Read more [tighten.com]
– stefanzweifel.dev - submitted by Stefan Zweifel – Edit
A new Laravel package to protect sensitive routes or actions with a confirmation-screen and ask for the two-factor authentication code of a user.
Read more [stefanzweifel.dev]
– jonathanpurvis.co.uk - submitted by Jon Purvis – Edit
Inspired by a Tweet from Christoph Rumpel asking for best practises for importing huge CSV files, I did a write up about how I've imported (so far) 1.7 billion rows of CSV data from Stripe using their API.
Read more [jonathanpurvis.co.uk]