Not sure where you have got this code from. The official docu provides you with a different method:
if (Request::isMethod('post'))
{
//
return 'it is posted';
}
If you want generally the request method, you may use this
$method = Request::method();
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community