laravel/framework — pull request #3937 by benubird (2014-03-20 12:12:02+00:00)
Title: Added function to check whether a route has a given HTTP method

Because otherwise is is very difficult for a controller to determine whether it is just a page request, or if data is being posted. Now that can be tested with a call to Route::getCurrentRoute()->hasMethod('POST')