Вопрос

how can I return or print "HTTP VERB" that passed to route?

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

thanks,

Это было полезно?

Решение

i think you're looking for the request method:

$method = Request::method();
Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top