Skip to content

Commit 7803976

Browse files
committed
Using config model for schedulers.
1 parent 962846d commit 7803976

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Models/Concerns/HasMailatorSchedulers.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace Binarcode\LaravelMailator\Models\Concerns;
44

5-
use Binarcode\LaravelMailator\Models\MailatorSchedule;
65
use Illuminate\Database\Eloquent\Model;
76
use Illuminate\Database\Eloquent\Relations\MorphMany;
87

@@ -15,6 +14,6 @@ trait HasMailatorSchedulers
1514
{
1615
public function schedulers(): MorphMany
1716
{
18-
return $this->morphMany(MailatorSchedule::class, 'targetable');
17+
return $this->morphMany(config('mailator.scheduler.model'), 'targetable');
1918
}
2019
}

0 commit comments

Comments
 (0)