I have a model which has lots of columns(about 60) and i want to update it in my application but i need to update 57 columns of it so i tried this one.
public function update($id)
{
$vehicle = Vehicle::find($id);
$input = Request::except('representive','buyer','seller');
$vehicle->update($input);
return redirect('pages/aracislemler/'.$vehicle->id);
}
These 3 columns above are FKs so i try to avoid Integrity constraint violation error but i am still getting this error. How can i solve this problem ?
Any help would be appreciated
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire