From 3fe6ad0bdc8e863b822abc9e4bc05a2a70e32d5e Mon Sep 17 00:00:00 2001 From: Sidrit Trandafili Date: Wed, 21 Feb 2024 16:08:35 +0100 Subject: [PATCH] Allow using the activity_model value in spaties base package config file --- src/Pages/ListActivities.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Pages/ListActivities.php b/src/Pages/ListActivities.php index d3ac720..d550fc9 100644 --- a/src/Pages/ListActivities.php +++ b/src/Pages/ListActivities.php @@ -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()) ); }