Last active
January 24, 2023 23:52
-
-
Save elishaukpong/0f1bdbe6101b0c5ad4d89cd476311e8e to your computer and use it in GitHub Desktop.
Gist showing a basic overview of pipelines
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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