We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 962846d commit 7803976Copy full SHA for 7803976
src/Models/Concerns/HasMailatorSchedulers.php
@@ -2,7 +2,6 @@
2
3
namespace Binarcode\LaravelMailator\Models\Concerns;
4
5
-use Binarcode\LaravelMailator\Models\MailatorSchedule;
6
use Illuminate\Database\Eloquent\Model;
7
use Illuminate\Database\Eloquent\Relations\MorphMany;
8
@@ -15,6 +14,6 @@ trait HasMailatorSchedulers
15
14
{
16
public function schedulers(): MorphMany
17
18
- return $this->morphMany(MailatorSchedule::class, 'targetable');
+ return $this->morphMany(config('mailator.scheduler.model'), 'targetable');
19
}
20
0 commit comments