belongsTo('App\User', 'autorId'); } public function trabalho(){ return $this->belongsTo('App\Trabalho', 'trabalhoId'); } }