sarfraznawaz2005/visitlog

trim() expects parameter 1 to be string, array given

Closed this issue · 1 comments

I am using Laravel 5.8 and im getting error ""trim() expects parameter 1 to be string, array given".After commenting this mentioned piece of code, it works properly.
if (is_array($data)) {
$data = array_map('trim', $data);
}
Please help me on that asap

@oelsuser just keep it commented, that piece of code is not necessary. I will update the code shortly.