I think you can do it easy way,
First try to create some controller and add this mehod.
route.
Route::put('putting', 'PuttingController@putting');
putting controller and add putting method.
public function putting(Request $request, $id)
{
$email = $request->get('email');
dd($email);
}
you can check is method == PUT by
$request->isMethod('PUT')
but it no need to check because we make a rule on route already.
--- Edit ---
The easy way to make an API.
Laravel provided the Route::resource
see DOC http://laravel.com/docs/5.1/controllers#restful-resource-controllers
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community