Skip to content

Commit

Permalink
Allow using the activity_model value in spaties base package config file
Browse files Browse the repository at this point in the history
  • Loading branch information
sidis405 committed Feb 21, 2024
1 parent 0840faf commit 3fe6ad0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Pages/ListActivities.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,10 @@ public function form(Form $form): Form

public function getActivities()
{
$activityModel = config('activitylog.activity_model') ?? Activity::class;

return $this->paginateTableQuery(
$this->applyFilters(Activity::latest())
$this->applyFilters($activityModel::latest())
);
}

Expand Down

0 comments on commit 3fe6ad0

Please sign in to comment.