src/HandlerList.php
public function before($findName, $withName, callable $middleware)
    {
        $this->splice($findName, $withName, $middleware, true);
    }
public function before($findName, $withName, callable $middleware)
    {
        $this->splice($findName, $withName, $middleware, true);
    }
public function before ( $ findName , $ withName , callable $ middleware ) { $ this -> splice ( $ findName , $ withName , $ middleware , true ) ; }
Add a middleware before the given middleware by name.

@param string|callable $findName   Add before this
@param string          $withName   Optional name to give the middleware
@param callable        $middleware Middleware to add.
Add a middleware before the given middleware by name .