Laravel\Lumen\Http\Redirector::to PHP Method

to() public method

Create a new redirect response to the given path.
public to ( string $path, integer $status = 302, array $headers = [], boolean $secure = null ) : Illuminate\Http\RedirectResponse
$path string
$status integer
$headers array
$secure boolean
return Illuminate\Http\RedirectResponse
    public function to($path, $status = 302, $headers = [], $secure = null)
    {
        $path = $this->app->make('url')->to($path, [], $secure);
        return $this->createRedirect($path, $status, $headers);
    }