belongsTo('App\Dossier', 'dossier_id'); } /** * Get the sujet that owns the media. */ public function sujet() { return $this->belongsTo('App\Sujet', 'sujet_id'); } /** * Get the typemedia that owns the media. */ public function typemedia() { return $this->belongsTo('App\Typemedia', 'typemedia_id'); } }