Skip to content
Advertisement

ErrorException (E_NOTICE) Array to string conversion in Laravel

I am presenting this error: ErrorException (E_NOTICE) Array to string conversion

This is the view from where I am sending the data from the inputs.

JavaScript

This is the method in the controller.

JavaScript

Here I am trying to store the record id (proceding_id), the candidate id (candidate_id), the political party id (politicparty_id), and the value that is recorded in the form in the total (total) field.

The drawback I am presenting is that I am not correctly converting the array to the string generating the following error.

Advertisement

Answer

I was organizing some things in the project and corrected the problem by doing a little research and was able to fix it as follows.

I hope it will be a useful resource for future cases.

JavaScript
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement