문제

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