Skip to content

Instantly share code, notes, and snippets.

@elishaukpong
Last active January 24, 2023 23:52
Show Gist options
  • Save elishaukpong/0f1bdbe6101b0c5ad4d89cd476311e8e to your computer and use it in GitHub Desktop.
Save elishaukpong/0f1bdbe6101b0c5ad4d89cd476311e8e to your computer and use it in GitHub Desktop.
Gist showing a basic overview of pipelines
<?php
use Illuminate\Pipeline\Pipeline;
$content = 'anything';
$pipes = [
pipe1, pipe2, pipe3,...pipe(n)
];
app(Pipeline::class)
->send($content)
->through($pipes)
->via(‘anyMethodName’)
->then(function ($content) {
//take final action
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment