Here are a few tips and tricks that you can use in your Alpine 3.x components.
Read more [ryangjchandler.co.uk]
Follow me on Twitter. I regularly tweet out programming tips, and what I myself have learned in ongoing projects.
Every two weeks I send out a newsletter containing lots of interesting stuff for the modern PHP developer.
Expect quick tips & tricks, interesting tutorials, opinions and packages. Because I work with Laravel every day there is an emphasis on that framework.
Rest assured that I will only use your email address to send you the newsletter and will not use it for any other purposes.
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]
Laravel recently added parallel testing to the framework using the Paratest package which runs PHPUnit in separate parallel processes. Adding support for this in your own package tests is pretty straightforward using orchestral/testbench.
Read more [www.rias.be]
Most developers have probably seen some complex conditionals in legacy code. In this video I show you how to refactor those.
Sidecar packages, creates, deploys, and executes Lambda functions from your Laravel application.
Read more [github.com]
An excellent post on the subject by Sarah Dayan.
Read more [frontstuff.io]
Tighten employees share encouragement for anyone struggling through the pandemic.
Read more [tighten.co]
Sometimes it is not clear what the responsibility of a certain class is. This can be solved by adding a suffix to the class name.
Thanks to Doeke Norg personal access tokens became more flexible in Sanctum. In this blog post, he explains how you might use the new functionality
Read more [doeken.org]