Skip to content

Commit

Permalink
feat: retrieve the model’s class-string from the Relation class to …
Browse files Browse the repository at this point in the history
…support Laravel’s `enforceMorphMap` feature
  • Loading branch information
mostafaznv committed Dec 18, 2024
1 parent baacdeb commit 731a2b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Jobs/ProcessFFMpeg.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public function handle()
}
else {
/** @var Model $class */
$class = Relation::getMorphedModel($this->model);
$class = class_exists($this->model) ? $this->model : Relation::getMorphedModel($this->model);
$modelNotSaved = true;

while ($modelNotSaved) {
Expand Down

0 comments on commit 731a2b1

Please sign in to comment.