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.