Skip to content

Commit

Permalink
upd metatag relation model
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanITS committed Jan 20, 2020
1 parent 2b073cd commit 84b4d05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Models/MetaTag.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class MetaTag extends Model

public function metatagable()
{
return $this->morphTo('model');
return $this->morphTo('metatagable', 'model_type', 'model_id');
}

public function scopeByType($query, string $type = null)
Expand Down

0 comments on commit 84b4d05

Please sign in to comment.