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

Laravel Namespace Resource Controller Routing

I was working on a laravel project. The following is the code of my UserController: <?php namespace AppHttpControllersBackendAdminUsers; use AppModelsUser; use IlluminateHttpRequest; use SpatiePermissionModelsRole; use AppHttpControllersController; use IlluminateSupportFacadesSession; use AppRepositoriesInterfacesUserRepositoryInterface; class UserController extends Controller { protected $userRepository; public function __construct(UserRepositoryInterface…

VIEW QUESTION
Back To Top
Search