Skip to content

Commit

Permalink
Merge pull request #154 from atmonshi/fix-get-model
Browse files Browse the repository at this point in the history
fix resolving the model
  • Loading branch information
saade authored Feb 8, 2024
2 parents 525641a + 7907ee0 commit 47ee4da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Widgets/Concerns/InteractsWithRecords.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down

0 comments on commit 47ee4da

Please sign in to comment.