How to run over 30k tests in under 5 minutes
Paratest is an extension on top of PhpUnit that adds support for parallel testing. For our unit tests, we could just add Paratest and it works without any configuration!
Read more [blog.mollie.com]
Posts tagged with php
Paratest is an extension on top of PhpUnit that adds support for parallel testing. For our unit tests, we could just add Paratest and it works without any configuration!
Read more [blog.mollie.com]
– atymic.dev - submitted by atymic
Here's a deep dive into running Laravel on DigitalOcean's new PAAS offering.
Read more [atymic.dev]
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.
"Always fresh, useful tips and articles. Carefully selected community content. My favorite newsletter, which I look forward to every time."
Miguel Piedrafita explains how you can let Gumroad and Laravel be friends
Read more [miguelpiedrafita.com]
In this video, which is part of the Laravel Package Training, I show you how the "Marked as Completed" button under each video works.
In this stream, my colleague Brent and I download the source of PHP 8 RC1, and test some of PHP 8's cool new features.
Brent and I are working on Front Line PHP, an ebook on cutting edge tactics in PHP 8, accompanied by videos and practical examples. Subscribe to our mailing list to get updates around this project.
Paul Dragoonis and Christoph Rumpel started a projecto to improve the synergy between the community and the project maintainers
Read more [www.reddit.com]
Traits are a wonderful thing in PHP. You can use them to reduce code duplication by putting common functions in a trait and apply them to all classes where those functions are needed. I also sometimes use traits to break up a large function in multiple single-use traits.
In this post, I'd like to show you how you can override a trait function and call it from the overriding function.
– johnbraun.blog - submitted by John Braun
In light of the upcoming Hacktoberfest, John Braun shares some tips for beginners who might want to make their first contribution specifically to a PHP package.
Read more [johnbraun.blog]
– stefanzweifel.io - submitted by Stefan Zweifel
A quick intro on how to use states for "nested" Database Factories. The examples covers the Models created by laravel/cashier-paddle package.
Read more [stefanzweifel.io]
– fidum.uk
Dan Manson explains how you can run that shiny new schema:dump command on GitHub actions. Pretty cool
Read more [fidum.uk]
– ryangjchandler.co.uk - submitted by Ryan Chandler
Laravel makes use of the internal Pipeline class and it's more common in userland too, but have you ever considered tidying up these pipeline processes with custom pipeline classes?
Read more [ryangjchandler.co.uk]
In this post Mohamed Said shared the possible ways to switch between drivers.
Read more [divinglaravel.com]
In this example chapter taken from the Laravel Beyond CRUD course, Brent explains a good strategy to handle data
Read more [laravel-beyond-crud.com]
– johnbraun.blog - submitted by John Braun
When writing an end-to-end test, it is tricky to force the application to use a certain (fake) date. In this post, John Braun shares his approach using a custom middleware to be able to write Cypress tests while your application state uses a specific (fake) date.
Read more [johnbraun.blog]
In this video you'll learn how add support for multiple PHP and Laravel versions, and how to run the tests against all combinations of Laravel and PHP.
Read more [spatie.be]
Christop Rumpel shares some good tips on how to refactor code.
Read more [christoph-rumpel.com]
– nunomaduro.com - submitted by Nuno Maduro
PEST v0.3 features a new expectation API, a brand new PHPStorm plugin, and more.
Read more [nunomaduro.com]
Using our spatie/laravel-short-schedule package you can schedule commands at sub-minute intervals.
It's funny how from the outside, IT is often seen as an exact science. When starting as a developer, I often heard people say: "Oh, you're in IT, so you must be good at mathematics". I never understood why someone who is supposedly good at mathematics is the right person to fix a printer.
When you have some experience building applications, you know that IT is not an exact science. There are multiple valid solutions to a problem. Take five developers and ask them what the best way to set up a blog is. You'll likely get five different answers. Each suggestion will have its own set of tradeoffs.
– nunomaduro.com - submitted by Nuno Maduro
With Laravel 8 coming soon, Nuno just released Collision v5.0. Let's see the changes merged into this release.
Read more [nunomaduro.com]