diff --git a/src/Support/HasSendsTrait.php b/src/Support/HasSendsTrait.php index d8d966d..b98820d 100644 --- a/src/Support/HasSendsTrait.php +++ b/src/Support/HasSendsTrait.php @@ -5,13 +5,12 @@ namespace Wnx\Sends\Support; use Illuminate\Database\Eloquent\Relations\MorphToMany; -use Wnx\Sends\Models\Send; trait HasSendsTrait { public function sends(): MorphToMany { return $this - ->morphToMany( config('sends.send_model'), 'sendable','sendables','sendable_id','send_id'); + ->morphToMany(config('sends.send_model'), 'sendable', 'sendables', 'sendable_id', 'send_id'); } }