[Solved] ErrorException (E_ERROR) rawurlencode() expects parameter 1 to be string, object given ‘


This error message indicate that something is route with your url, in this case from the view. To solve this problem, this code

<a href="https://stackoverflow.com/questions/50911427/{{ url("agent/edit_maintenance', $maintenance }}" type="button" class="btn btn-outline btn-success"><i class="ti-pencil"></i></a>

as to change to

<a href="https://stackoverflow.com/questions/50911427/{{ url("agent/edit_maintenance/'. $maintenance->id }}" type="button" class="btn btn-outline btn-success"><i class="ti-pencil"></i></a>

solved ErrorException (E_ERROR) rawurlencode() expects parameter 1 to be string, object given ‘