diff --git a/app/Proponente.php b/app/Proponente.php index 3a4f9de5bb7566bcde8386237a961b8b2cd5d230..40ebd4777767db54cedc9559ffea0926ea01d99b 100755 --- a/app/Proponente.php +++ b/app/Proponente.php @@ -11,6 +11,9 @@ class Proponente extends Model public function user(){ return $this->belongsTo('App\User'); } + public function planoTrabalho() { + return $this->hasOne('App\Arquivo', 'proponenteId'); + } public function trabalhos(){ return $this->hasMany('App\Trabalho'); }