diff --git a/laravel/routing/route.php b/laravel/routing/route.php index 4f4896df..f87b04d3 100644 --- a/laravel/routing/route.php +++ b/laravel/routing/route.php @@ -380,5 +380,17 @@ public static function filter($name, $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