3 months ago

Extra field on pivot table not affected when using morphMap

Posted 3 months ago by untymage

So i have morph many-to-many relation and have a extra field on it :

tag_id | taggable_id | taggable_type | usage

When i use morphMap the column usage not working which is increments number by every record

    public function boot()

            'Thread' => 'App\Thread',


any idea?

Please sign in or create an account to participate in this conversation.