Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Walter Felipe
submeta
Commits
ea95e8c8
Commit
ea95e8c8
authored
Nov 22, 2022
by
Lucas Henrique
Browse files
Estabelece relação entre proponente e arquivo
parent
d9932250
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/Proponente.php
View file @
ea95e8c8
...
@@ -11,6 +11,9 @@ class Proponente extends Model
...
@@ -11,6 +11,9 @@ class Proponente extends Model
public
function
user
(){
public
function
user
(){
return
$this
->
belongsTo
(
'App\User'
);
return
$this
->
belongsTo
(
'App\User'
);
}
}
public
function
planoTrabalho
()
{
return
$this
->
hasOne
(
'App\Arquivo'
,
'proponenteId'
);
}
public
function
trabalhos
(){
public
function
trabalhos
(){
return
$this
->
hasMany
(
'App\Trabalho'
);
return
$this
->
hasMany
(
'App\Trabalho'
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment