You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-5
Original file line number
Diff line number
Diff line change
@@ -65,7 +65,7 @@ The first step in using the Zaengle Pipeline is to create a Data Traveler class.
65
65
$traveler = (new RegisterTraveler())->setRequest(request()->all());
66
66
```
67
67
68
-
While not required, by extending `Zaengle\Pipeline\Contracts\AbstractTraveler`you will inherit additional methods utilized in the `Zaengle\Pipeline\Pipeline` class.
68
+
`Zaengle\Pipeline\Contracts\AbstractTraveler`provides additional methods utilized in the `Zaengle\Pipeline\Pipeline` class.
69
69
70
70
```php
71
71
<?php
@@ -122,7 +122,7 @@ use App\User;
122
122
use Zaengle\Pipeline\Contracts\PipeInterface;
123
123
124
124
class CreateUser implements PipeInterface {
125
-
public function handle($traveler, \Closure $next)
125
+
public function handle(RegisterTraveler|AbstractTraveler $traveler, \Closure $next): RegisterTraveler
126
126
{
127
127
$traveler->setUser(
128
128
User::create([
@@ -144,7 +144,7 @@ use Zaengle\Pipeline\Contracts\PipeInterface;
144
144
145
145
class HandleMailingList implements PipeInterface
146
146
{
147
-
public function handle($traveler, \Closure $next)
147
+
public function handle(RegisterTraveler|AbstractTraveler $traveler, \Closure $next): RegisterTraveler
Assuming the traveler extends `AbstractTraveler`, after sending the `$traveler` through the data pipes you will have access to a `->passed()` method which indicates whether the pipeline completed successfully or not.
174
+
After sending the `$traveler` through the data pipes you will have access to a `->passed()` method which indicates whether the pipeline completed successfully or not.
0 commit comments