belongsTo('App\User', 'user_id'); } /** * Get the media that owns the historique. */ public function media() { return $this->belongsTo('App\Media', 'media_id'); } }