Question

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

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

thanks,

Était-ce utile?

La solution

i think you're looking for the request method:

$method = Request::method();
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top