Skip to content

Commit

Permalink
Fixing hardcoded reference to timeline model
Browse files Browse the repository at this point in the history
  • Loading branch information
kfriars committed Sep 9, 2021
1 parent 379e731 commit 5f54433
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Models/Checkpoint.php
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,10 @@ public static function active(): ?Checkpoint
*/
public function timeline(): BelongsTo
{
return $this->belongsTo(Timeline::class, static::TIMELINE_ID);
/** @var string $timelineModel */
$timelineModel = config('checkpoint.models.timeline');

return $this->belongsTo($timelineModel, static::TIMELINE_ID);
}

/**
Expand Down

0 comments on commit 5f54433

Please sign in to comment.