belongsToMany('App\User', 'marques_users', 'marque_id', 'user_id'); } /** * The dossier that belong to the marque. */ public function dossiers() { return $this->belongsToMany('App\Dossier', 'marques_dossier', 'marque_id', 'dossier_id'); } /** * The medias that belong to the marques. */ public function medias() { return $this->belongsToMany('App\Media', 'medias_marques', 'marque_id', 'media_id'); } }