belongsTo('App\User'); } public function trabalhos(){ return $this->hasMany('App\Trabalho'); } }