![murze.be Blog - Freek Van der Herten](https://i1.feedspot.com/4387992.jpg?t=1616408600)
murze.be Blog - Freek Van der Herten
1,680 FOLLOWERS
A blog on modern PHP and Laravel. Freek Van der Herten is a Laravel enthousiast and PHP developer at Spatie
murze.be Blog - Freek Van der Herten
2d ago
Learn how to fake and record HTTP responses so you can test your Saloon API integration in your Laravel applications.
Read more ..read more
murze.be Blog - Freek Van der Herten
1w ago
We’ve released a new package called spatie/pest-plugin-route-testing. This package can test all common routes in your Laravel app by writing a single test.
In this blog post, I’d like to tell you all about it.
Why this package was created
When people start out writing tests for their Laravel apps, I usually give the advice to test your home page. The homepage usually is a very simple URL to test; it’s just a simple GET request. Here’s a video that explains how to test the homepage taken from our Testing Laravel course. Here’s how such a test could like:
it('can render the homepage', function ..read more
murze.be Blog - Freek Van der Herten
1w ago
We’ve published a new package called livewire-filepond, which contains a component to easily upload files.
Under the hood, Filepond, a powerful JavaScript library to upload files, is used.
Here's how it looks like in action in mailcoach.app (a product we built at Spatie):
Using livewire-filepond
Our package makes it very easy to use Filepond in your Livewire powered Laravel app.
After installing the package, you add the scripts to your layout or view where you want to use Filepond:
@filepondScripts
Next, add the WithFilePond trait to your component:
use Livewire\Component;
use Spatie\Livew ..read more
murze.be Blog - Freek Van der Herten
3w ago
In this episode of the Quick Win Wednesday series, we're taking a look at whereAny(), which was released with Laravel 10.47. A very elegant way of grabbing data based on a conditional "any of the following columns".
Read more ..read more
murze.be Blog - Freek Van der Herten
3w ago
When Laravel switched to a simpler exception page, the ability to display solutions for an exception was lost.
Our latest package, called spatie/laravel-error-solutions brings back that powerful feature. When installed, it will display solutions for most common exceptions.
Here’s how that looks it:
And yes, some solutions, like the one in the screenshot above, can be executed on the exception page too.
In this blog post, I’d like to tell you all about it!
Displaying and running solutions
Getting started with the package is quite easy. Just install it using Composer, and you’re done.
composer ..read more
murze.be Blog - Freek Van der Herten
3w ago
Jujutsu (jj) is a new version control system from a software developer at Google with a focus on DX.
Read more ..read more
murze.be Blog - Freek Van der Herten
1M ago
Here's how our latest package works under the hood.
Read more ..read more