app/Models/Products.php
@@ -15,15 +15,15 @@ */ protected $fillable = [ 'LinkedMSISDN', 'tmCode', 'TmCode', 'OMProductId', 'description', 'activationDate' 'Name', 'Description', ]; public function msisdn() { return $this->belongsTo('App\Models\Msisdn', 'LinkedMSISDN', 'id'); return $this->belongsToMany(Msisdn::class, 'pivot_msisdn_products', 'idProducts', 'idMsisdn'); } }