خرید بک لینک

Vote count: 0

I have a little problem, I need to create friendships system, using 'through' option, but I can not find in documentation how to save extra data in the joint / pivot table.

In Candidates Table (User table)

    $this->belongsToMany('Users', [
        'foreignKey' => 'requester_id',
        'targetForeignKey' => 'recipient_id',
        'joinTable' => 'coections',
        'through' => 'Coections'
    ]);

In coections table need to save additional data, (status, baed_by, created, modified,..)

How to do it? if my association set right?

asked 10 secs ago

برچسب: نویسنده: استخدام کار تاريخ: يکشنبه 27 تير 1395 ساعت: 21:56

صفحه بندی