diff --git a/laravel/redirect.php b/laravel/redirect.php index fded4014..756c8b45 100644 --- a/laravel/redirect.php +++ b/laravel/redirect.php @@ -35,9 +35,17 @@ public static function to_secure($url, $status = 302) return static::to($url, $status, true); } - public static function to_action($action, $parameters = array()) + /** + * Create a redirect response to a controller action. + * + * @param string $action + * @param array $parameters + * @param int $status + * @return Redirect + */ + public static function to_action($action, $parameters = array(), $status = 302) { - + return static::to(URL::to_action($action, $parameters), $status); } /**