Hello Geek,
I'm currently working on a small API using Lumen. However, I'm having some difficulties about the getting the Request on update method (PUT routes). When I tried to return the Request using $request->all() it's empty.
**
public function update($role_id, Request $request) {
$role = Role::findOrFail($id);
$role->name = $request->input('name');
$role->description = $request->input('description');
$role->save();
}
On the other hand, the store method is working find and I was able to extract the Request inputs
Thanks for your help
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community