Skip to content

Commit

Permalink
L6 compatibility fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickbrouwers authored Sep 3, 2019
1 parent 57b9916 commit 150b694
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Actions/ExportToExcel.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use Laravel\Nova\Nova;
use Laravel\Nova\Resource;
use Illuminate\Support\Arr;
use Laravel\Nova\Fields\Field;
use Laravel\Nova\Actions\Action;
use Laravel\Nova\Fields\Gravatar;
Expand Down Expand Up @@ -197,11 +198,11 @@ public function map($row): array
}

if (is_array($only) && count($only) > 0) {
$row = array_only($row, $only);
$row = Arr::only($row, $only);
}

if (is_array($except) && count($except) > 0) {
$row = array_except($row, $except);
$row = Arr::except($row, $except);
}

return $row;
Expand Down

0 comments on commit 150b694

Please sign in to comment.