Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
mahmoudmohamedramadan committed Oct 1, 2024
1 parent 53d5c4a commit 54a5bcd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Concerns/HasModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@ protected function guessModel()
// This trait may be used in the Model that you need to search in so, we will
// guess the model using the Model name in case it is not provided.
if (!empty($this->getModel())) {
return $this;
return;
}

if (is_a(self::class, Model::class, true)) {
$this->model = self::class;
$this->setModel(self::class);
}
}
}

0 comments on commit 54a5bcd

Please sign in to comment.