In my controller/action:
if(!empty($_POST)) { if(Auth::attempt(Input::get(\'data\'))) { return Redirect::intended(); } else {
$_SERVER['REQUEST_METHOD'] is used for that.
$_SERVER['REQUEST_METHOD']
It returns one of the following: