moktar
10/17/2019 - 11:29 AM

command

        $banks = \App\Bank::with('claim.claims')->get();
        $allreferences = $banks->reject(function ($utf) {
            return (iconv("UTF-8", "UTF-8//IGNORE", $utf->label));
        });
        $dumpreference = $allreferences->map(function ($reference) {
            return $reference['claim']['claims'][0]['reference'];
        });
        dd($dumpreference);