Preparing manipulations

In all other examples in the docs image manipulations like brightness and blur are called directly on the Image instance. You could also opt to build up a Manipulations instance.

$manipulations = (new Manipulations())

Then you can use that to manipulate a collection of images.

//using Laravel's collect function

collect($images)->each(function(Image $image) use ($manipulations) {

The manipulate function can also accept a closure.

$image->manipulate(function(Manipulations $manipulations) {