Validate Data Types in Laravel Collections Using the `ensure()` Method
Learn about the “ensure” method and how to use it to verify that only items of a given data type exist in Laravel Collections. Read more
Your PHP News Aggregator
Your PHP News Aggregator
Learn about the “ensure” method and how to use it to verify that only items of a given data type exist in Laravel Collections. Read more
You should consider using the handle() method for dependency injection in Artisan commands, rather than __construct(). Read more
Laravel provides some excellent ‘Retry’ mechanisms out of the box for handling transient failures! In this article, we’ll learn about these mechanisms to build a reliable system using Laravel! Read more
I like to use the findOrFail() function in Livewire methods that call actions. But I really don’t like the default behaviour of Livewire showing a modal view with a 404. Let me show you how to personalise that. Read more
A step-by-step guide on how to utilize the new Assistants and Vision APIs with Laravel. Read more
In our previous post, we looked at how JetBrains AI Assistant can automatically scaffold unit tests for us. By generating the boring boilerplate code, it allows us to jump straight into the more interesting part of making our tests. Playing…
This post was first published for my newsletter subscribers. You can subscribe by mailing brendt@stitcher.io. Half a year ago, I wrote this: Ok, so, I’ve started working on something — probably the biggest project I’ve worked on in a while…
We’ve released a new major version of our popular laravel-data package. My colleague Ruben wrote a post mentioning all of the changes. Read more
Testing. If you’re anything like me, you’ll agree that it’s equal parts important and boring. It’s one of those things that isn’t much fun while you’re doing it, but you know it’ll pay dividends later on. So, what makes testing…
Having reusable input components is great. Knowing how to make them is even better! Follow along to see how we can create a generic TextInput component with a fluent interface that can be reused everywhere with just a few lines…
In a lot of scenarios, I want to maintain the name of a file when a user uploads it to a site, rathe
Laravel Clockwork is a powerful debugging and profiling tool seamlessly integrated into the Laravel framework. With its real-time web interface, Clockwork provides developers with instant insights into their application’s runtime behavior. Read more