get(); //Get the characters that have the esi-wallet.read_corporation_wallets.v1 //esi wallet scope $characters = DB::table('EsiScopes')->where('scope', 'esi-wallet.read_corporation_wallets.v1')->get(); //For each structure let's attemp to gather the characters owning the structures and peer into their wallets. foreach($structures as $structure) { var_dump($structure); } } }