I'm currently using the Revisionable Package v1.28.0 for Laravel v5.4.23 which is a great couple for the most situations.
But now I got a little problem with the revisioning of input arrays. The input element <input name="company_list[]">
is not a big deal but its kind of invisible for the revisionable package. So no changes are written to the database. A dd()
of the request shows the content of the input fields.
"company_list" => array:3 [0 => "12", 1 => "10",2 => "2"]
The input array will be synchronized with the User Model.
$user->companies()->sync($request->input('company_list',[]))
Is there a way to get the changes and translate the ids to the specific names?
Thanks a lot!