hasMany('App\Variante'); } /** * Get the sujet that owns the Typevue. */ public function sujet() { return $this->belongsTo('App\Sujet', 'sujet_id'); } /** * Get the medias for the Typevue. */ public function medias() { return $this->hasMany('App\Media'); } }