Pergunta

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

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

thanks,

Foi útil?

Solução

i think you're looking for the request method:

$method = Request::method();
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top