Complex pipelines! #47123
Unanswered
henzeb
asked this question in
Show and tell
Complex pipelines!
#47123
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The pipeline pattern exists in laravel for a long time, and for a while now there is even a facade giving you more easy access to it.
The pipeline is very simple. anything that's callable or has a
handle
method with the passable and a $next closure can be used. If you want more complexity, those are hidden within yourpipes
ormiddleware
. There are no events and sometimes logic of storing something in the database have to happen in onepipe
.Suppose you could do the following:
This showcases 4 of the currently 14
pipes
the factory produces. You can go as complex as you want while keeping the pipeline as simple as possible.https://packagist.org/packages/henzeb/laravel-pipeline-factory
Beta Was this translation helpful? Give feedback.
All reactions