Support the ongoing development of Laravel.io →
Eloquent Architecture
Last updated 2 years ago.
0

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();

http://laravel.com/docs/5.0/requests

Last updated 9 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

ottz0 ottz0 Joined 15 Nov 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.