Skip to content

Commit 5f54433

Browse files
committed
Fixing hardcoded reference to timeline model
1 parent 379e731 commit 5f54433

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Models/Checkpoint.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,10 @@ public static function active(): ?Checkpoint
185185
*/
186186
public function timeline(): BelongsTo
187187
{
188-
return $this->belongsTo(Timeline::class, static::TIMELINE_ID);
188+
/** @var string $timelineModel */
189+
$timelineModel = config('checkpoint.models.timeline');
190+
191+
return $this->belongsTo($timelineModel, static::TIMELINE_ID);
189192
}
190193

191194
/**

0 commit comments

Comments
 (0)