skip to Main Content

Laravel : array to string conversion

I want to import excel, and my code of controller is $path = $request->file('file')->getRealPath(); $dataOfMember = Excel::toArray(new InterfaceMember(), $path); $dataOfMember = $dataOfMember[0]; $insert_dataOfMember = []; foreach ($dataOfMember as $row) { $insert_dataOfMember[] = [ 'kodeToko' => $kodeToko = session('authData')['kodeToko'], 'idMember' =>…

VIEW QUESTION
Back To Top
Search