Optimize Bulk Insertions with Laravel's New fillAndInsert() Method
Laravel’s new fillAndInsert() method enables bulk insertions while applying model casting, timestamps, and UUID generation.
Read more [www.harrisrafto.eu]
Laravel’s new fillAndInsert() method enables bulk insertions while applying model casting, timestamps, and UUID generation.
Read more [www.harrisrafto.eu]
Many of the most effective people I’ve worked with also do the most metacognition, i.e., reflecting on their own (and their team’s) work and thought processes, and figuring out how to improve them.
Read more [www.benkuhn.net]
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."
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.
– www.conroyp.com - submitted by Paul Conroy
Stripe metadata is great for config, entitlements, and... DNS? This experiment takes one good API feature and stretches it into the worst possible infrastructure layer.
Read more [www.conroyp.com]
Here's the recording of the talk I did at this years Laracon India. In this talk, I show how we use our laravel-multitenancy package to make Mailcoach tenant aware. Enjoy!
– aaronfrancis.com - submitted by Aaron Francis
Transforming and serving images from Laravel in a cache-friendly way.
Read more [aaronfrancis.com]
Troy Hunt recently becaming the victim of phising. This proves yet again, that this can happen to anyone, not only non-technical people.
Read more [www.troyhunt.com]
We've been using this solution in our projects as well.
Read more [darkghosthunter.medium.com]
Michael Lynch, a software blogger, provides examples of his own successful posts and suggests strategies for promoting articles on platforms like Hacker News and Reddit.
Read more [refactoringenglish.com]
Don't use PHP for this. Still fun to do though
Read more [phpmemo.com]
Naming things is good skill to have for any programmer.
Read more [masteringlaravel.io]
– www.youtube.com - submitted by Pascal Baljet
Learn how you can update an Inertia.js page in real-time using client-side visits—without overloading your server, even with many users online. Laravel Echo, Laravel Reverb, and a new Inertia v2 feature make it simple and efficient.
Read more [www.youtube.com]
We just tagged & released a new major version of spatie/laravel-csp, a package to manage your Laravel app's content security policy. The development goal for version 3 was to reduce the boilerplate of configuring a policy for common services like Google Tag Manager, Fathom Analytics, Adobe Fonts…
Read more [spatie.be]
– tighten.com - submitted by Kayla Helmick
This article shares 10 efficient and fun ways to seed your database, from classic PHP arrays to importing CSVs and using AI to generate random, realistic data.
Read more [tighten.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]
Here's how you can use our Laravel Data package.
Read more [matthiasweiss.at]
– stephenjude.me - submitted by STEPHEN JUDE
Read more [stephenjude.me]
Beware of "Other"!
Read more [devblogs.microsoft.com]
Christmas came very early! Adam Wathan published a new free course.
Read more [tailwindcss.com]
Some very cool numbers on the PHP ecosystem, gathered by Jean-François Lépin.
Read more [blog.lepine.pro]