title: Laravel Excel - Get Active Cell or Row
body: <p>That's a simple question.</p>
  
  <p>I'm building a PHP Excel from scratch and is a very useful package.
  I need to catch the active cell or row to know which cells to modify and customize, I checked all methods in the package and I didn't found something that helped me.
  I'm inserting some data like this:</p>
  
  <pre><code>$sheet-&gt;appendRow(array(
                  $variable-&gt;value1,
                  $variable-&gt;value2,
                  $variable-&gt;value3,
              ));
  </code></pre>
  
  <p>And then I want to customize some things(This example I'm changing the background color), something like:</p>
  
  <pre><code>//The XXX is the last active row that I append some value before
  $sheet-&gt;cells('XXXX',function ($cells){
                  $cells-&gt;setBackground('#34EC34');
              });
  </code></pre>
  
  <p>There's some way to do find out the active cell or row to put in place of the 'XXX'? I found some question on <a href="https://stackoverflow.com/questions/32844806/maatwebsite-laravel-excel-is-it-possible-to-get-the-latest-active-row-or-cel">Stack</a> that someone was accessing by the variable $row, but I didn't found how to access....</p>