Laravel - Pass more than one parameter using use in callback functions?

0

It is as follows, I have a function of callback of this type:

\Excel::create($limite_vagas_array[0]['nome_curso']
          .' - '.$limite_vagas_array[0]['nome_polo']
          .' - Limite de vagas', function($excel) use ($limite_vagas_array)
        {
            $excel->sheet('sheet', function($sheet) use ($limite_vagas_array)
           {
                //#code
           }
        });

In use I call the array $limite_vagas_array , however I would like to pass another array .

How do I do this?

    
asked by anonymous 11.07.2017 / 22:24

0 answers