Pipeline
class Pipeline extends Pipeline (View source)
This extended pipeline catches any exceptions that occur during each slice.
The exceptions are converted to HTTP responses for proper middleware handling.
Properties
| protected Container | $container | The container implementation. | from Pipeline | 
| protected mixed | $passable | The object being passed through the pipeline. | from Pipeline | 
| protected array | $pipes | The array of class pipes. | from Pipeline | 
| protected string | $method | The method to call on each pipe. | from Pipeline | 
Methods
| void |  __construct(Container $container = null)  Create a new class instance.  |  from Pipeline | 
| $this |  send(mixed $passable)  Set the object being sent through the pipeline.  |  from Pipeline | 
| $this |  through(array|mixed $pipes)  Set the array of pipes.  |  from Pipeline | 
| $this |  via(string $method)  Set the method to call on the pipes.  |  from Pipeline | 
| mixed |  then(Closure $destination)  Run the pipeline with a final destination callback.  |  from Pipeline | 
| mixed |  thenReturn()  Run the pipeline and return the result.  |  from Pipeline | 
| Closure |  prepareDestination(Closure $destination)  Get the final piece of the Closure onion.  |  from Pipeline | 
| Closure |  carry()  Get a Closure that represents a slice of the application onion.  |  from Pipeline | 
| array |  parsePipeString(string $pipe)  Parse full pipe string to get name and parameters.  |  from Pipeline | 
| array |  pipes()  Get the array of configured pipes.  |  from Pipeline | 
| Container |  getContainer()  Get the container instance.  |  from Pipeline | 
| mixed |  handleCarry(mixed $carry)  Handles the value returned from each pipe before passing it to the next.  |  |
| mixed |  handleException(mixed $passable, Throwable $e)  Handle the given exception.  |  
Details
void __construct(Container $container = null)
Create a new class instance.
$this send(mixed $passable)
Set the object being sent through the pipeline.
$this through(array|mixed $pipes)
Set the array of pipes.
$this via(string $method)
Set the method to call on the pipes.
mixed then(Closure $destination)
Run the pipeline with a final destination callback.
mixed thenReturn()
Run the pipeline and return the result.
protected Closure prepareDestination(Closure $destination)
Get the final piece of the Closure onion.
protected Closure carry()
Get a Closure that represents a slice of the application onion.
protected array parsePipeString(string $pipe)
Parse full pipe string to get name and parameters.
protected array pipes()
Get the array of configured pipes.
protected Container getContainer()
Get the container instance.
protected mixed handleCarry(mixed $carry)
Handles the value returned from each pipe before passing it to the next.
protected mixed handleException(mixed $passable, Throwable $e)
Handle the given exception.
    © Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
    https://laravel.com/api/7.x/Illuminate/Routing/Pipeline.html