The redirect function returns a redirect HTTP response, or returns the redirector instance if called with no arguments:
<?php return redirect($to = null, $status = 302, $headers = [], $https = null);

return redirect('/home');

return redirect()->route('route.name');
<?php         foreach ($guards as $guard) {

            if (Auth::guard($guard)->check()) {

                return redirect($this->redirectTo($request));

            }

        }
<?php     {

        return $this->shouldReturnJson($request, $exception)

                    ? response()->json(['message' => $exception->getMessage()], 401)

                    : redirect()->guest($exception->redirectTo($request) ?? route('login'));

    }
<?php     protected function invalid($request, ValidationException $exception)

    {

        return redirect($exception->redirectTo ?? url()->previous())

                    ->withInput(Arr::except($request->input(), $this->dontFlash))

                    ->withErrors($exception->errors(), $request->input('_error_bag', $exception->errorBag));

    }
<?php     function to_route($route, $parameters = [], $status = 302, $headers = [])

    {

        return redirect()->route($route, $parameters, $status, $headers);

    }

}
<?php                             : trim($data['redirect'], '/');



                if ($request->path() !== $path) {

                    return redirect($path);

                }

            }
<?php     protected function bypassResponse(string $secret)

    {

        return redirect('/')->withCookie(

            MaintenanceModeBypassCookie::create($secret)

        );

    }