In my controller/action:
if(!empty($_POST)) { if(Auth::attempt(Input::get(\'data\'))) { return Redirect::intended(); } else {
The solutions above are outdated.
As per Laravel documentation:
$method = $request->method(); if ($request->isMethod('post')) { // }