Created
January 24, 2023 23:44
-
-
Save elishaukpong/a49346b412089d1ec744f43009628504 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 | |
app(Pipeline::class) | |
->send($content) | |
->through($pipes) | |
->via(‘customMethodName’) // <---- This one :) | |
->then(function ($content) { | |
return Post::create(['content' => $content]); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment