Skip to content

Commit

Permalink
Update EloquentDataProvider.php
Browse files Browse the repository at this point in the history
laravel 8 events fix
  • Loading branch information
hexusdev authored Jun 7, 2021
1 parent ccb25a6 commit 3fee310
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/EloquentDataProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public function getRow()
$row = new EloquentDataRow($item, $this->getRowId());

if (version_compare(Application::VERSION, '5.8', '>=')) {
Event::dispatch(self::EVENT_FETCH_ROW, $this);
Event::dispatch(self::EVENT_FETCH_ROW, [$row, $this]);
} else {
Event::fire(self::EVENT_FETCH_ROW, $this);
}
Expand Down

0 comments on commit 3fee310

Please sign in to comment.