$method = $request->method(); if ($request->isMethod('post')) { // }
The method method will return the HTTP verb for the request.
Clickable & Draggable!