From 7907ee0f17edf27425be9bde72342299f8142226 Mon Sep 17 00:00:00 2001 From: php coder Date: Sun, 4 Feb 2024 18:13:38 +0300 Subject: [PATCH] Update InteractsWithRecords.php --- src/Widgets/Concerns/InteractsWithRecords.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Widgets/Concerns/InteractsWithRecords.php b/src/Widgets/Concerns/InteractsWithRecords.php index 9b2e9f2..6b14da2 100644 --- a/src/Widgets/Concerns/InteractsWithRecords.php +++ b/src/Widgets/Concerns/InteractsWithRecords.php @@ -72,7 +72,7 @@ public function resolveRecordRouteBinding(int | string $key): ?Model protected function getEloquentQuery(): Builder { - $query = $this->model::query(); + $query = app($this->getModel())::query(); // TODO: Scope query to tenant.