mardi 3 avril 2018

Laravel 5.5 update method not working for request add feature

In the following code the extra added field is not updating in the database. But the dd($request->all()) gives the extra key value pair is added in the request.

protected function update(Request $request, $id)
{
  $user = User::find($id);
  $request->request->add(['net' => 'abc']);
  $user->update($request->all());
}



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2EfkAEQ
via IFTTT

Aucun commentaire:

Enregistrer un commentaire