سؤال

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