laravel 4返回传递给路由的HTTP VERB

时间:2014-05-05 23:03:13

标签: laravel laravel-4 laravel-routing

如何返回或打印" HTTP VERB"传递给路线?

Route::any('/', function()
{
    return "HTTP VERB";
}

感谢,

1 个答案:

答案 0 :(得分:1)

我认为您正在寻找request method

$method = Request::method();