diff --git a/laravel/routing/route.php b/laravel/routing/route.php index 97a8f524..6243d1e4 100644 --- a/laravel/routing/route.php +++ b/laravel/routing/route.php @@ -348,5 +348,17 @@ public static function filter($name, Closure $callback) { Filter::register($name, $callback); } + + /** + * Calls the specified route and returns its response. + * + * @param string $method + * @param string $uri + * @return Response + */ + public static function load($method, $uri) + { + return Router::route(strtoupper($method), $uri)->call(); + } } \ No newline at end of file