master

laravel/framework

Last updated at: 29/12/2023 09:21

Hub.php

TLDR

This file defines an interface called Hub in the Illuminate\Contracts\Pipeline namespace. The interface has a method called pipe that sends an object through one of the available pipelines.

Methods

pipe

This method sends an object through one of the available pipelines.

  • Parameters:
    • $object: The object to be sent through the pipeline.
    • $pipeline (optional): The name of the pipeline to send the object through.
  • Return: The result of sending the object through the pipeline.
<?php

namespace Illuminate\Contracts\Pipeline;

interface Hub
{
    /**
     * Send an object through one of the available pipelines.
     *
     * @param  mixed  $object
     * @param  string|null  $pipeline
     * @return mixed
     */
    public function pipe($object, $pipeline = null);
}