Errors when using groupBy() in laravel
– sinnbeck.dev - submitted by René Sinnbeck
Are you getting errors with laravels groupBy()? Here is short explanation of why.
Read more [sinnbeck.dev]
– sinnbeck.dev - submitted by René Sinnbeck
Are you getting errors with laravels groupBy()? Here is short explanation of why.
Read more [sinnbeck.dev]
Using else often encourages complexer code structure, makes code less readable. In most cases you can refactor it using early returns.
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."
– geisi.dev - submitted by Tim Geisendörfer
Let's improve your users privacy with file encryption without using any 3rd party packages.
Read more [geisi.dev]
– tray2.se - submitted by Patrik Ahlström
I hope you won't run into any of these.
Read more [tray2.se]
Have you ever needed to maintain a project that wasn't yours? A project that, when you first opened it, gave you chills down your spine? Even without reading the code in detail, you could already tell it was a mess.
Getting started with testing is not that hard. Here's a free video taken from the Testing Laravel course that will show you how you can make sure you homepage works.
Read more [spatie.be]
– rias.be
One of our projects has a really large test suite that isn't optimised to run with Laravel's parallel testing. It was starting to take more than 15 minutes to have the whole test suite run inside Github Actions, which is when my colleague Rias searched for a better way to do this.
Read more [rias.be]
I'm proud to announce that Steve Bauman and our team at Spatie have released a new tool called spatie/globay-ray. When installed, you'll be able to use dd, dump and ray functions in any PHP file on your system.
I think this is great news.
Read more [symfony.com]
Laravel 9 is fresh out the door, and it contains a small contribution of mine: a new callOnce method for database seeders.
Read more [sebastiandedeyne.com]
In this stream on YouTube, Francisco Madeira, co-creator of Termwind, guides me through the source code of his amazing package to style content on the CLI
– devonmather.dev - submitted by Devon Mather
Let's explore the option of firing events on model scopes to add some glue between our feature tests and our unit tests.
Read more [devonmather.dev]
Last week, Caleb tweeted about a nifty function called invade - that he had made to easily work with private properties and methods.
😈 Whatcha think of my new favorite helper method?
— Caleb Porzio (@calebporzio) February 11, 2022
That property/method protected or private? No problemoooo 🔓 pic.twitter.com/HqMXKKpRsJ
He added that invade function to Livewire. Because I could see myself using this in non-Laravel projects, I packaged up the function in a new package called spatie/invade.
How many times have you onboarded a new dev onto your team, only to have to spend ages debugging with them because your project's .env.example file is wildly outdated?
Here's a package that can help with that!
Read more [github.com]
I'm proud to announce that our team has released a new package called spatie/laravel-route-discovery. This package can be used to automatically discover and register routes by looking at your controllers and views. Of course, you can also still register routes like you're used to in a routes file.
In this blog post, I'd like to tell you all about this package.
In this video, Jeffrey Way of Laracasts shares all the cool new stuff in Laravel 9.
Last year, Laracon held another online edition in the summer. All of the videos are now publicly viewable. You'll find them in this playlist on YouTube.
I had the honour of doing a short talk on snapshot testing in PHP, which you can watch below.
In a few lenghty sessions on YouTube, you can watch Shawn McCool build Tetris using PHP
I was recently interviewed on my journey in PHP by the good folks at Kong. During this session you'll also see me demoing Ray.
Here's why you should be carefull with array_merge in loops.
Read more [www.exakat.io]