Skip to content

Instantly share code, notes, and snippets.

@elishaukpong
Last active January 24, 2023 23:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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