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
d7e525b1
"vscode:/vscode.git/clone" did not exist on "fe9bcfdaf50fcf91c7b56c8f0f95bbb3c5928627"
Commit
d7e525b1
authored
May 04, 2021
by
Carlos André
Browse files
adicionar pesquisador as funções do participante
parent
0d84ba50
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/Http/Controllers/TrabalhoController.php
View file @
d7e525b1
...
...
@@ -45,7 +45,7 @@ class TrabalhoController extends Controller
{
$edital
=
Evento
::
find
(
$id
);
$grandeAreas
=
GrandeArea
::
orderBy
(
'nome'
)
->
get
();
$funcaoParticipantes
=
FuncaoParticipantes
::
all
();
$funcaoParticipantes
=
FuncaoParticipantes
::
orderBy
(
'nome'
)
->
get
();
$proponente
=
Proponente
::
where
(
'user_id'
,
Auth
::
user
()
->
id
)
->
first
();
if
(
$proponente
==
null
){
...
...
database/seeds/FuncaoParticipanteSeeder.php
View file @
d7e525b1
...
...
@@ -34,6 +34,11 @@ class FuncaoParticipanteSeeder extends Seeder
DB
::
table
(
'funcao_participantes'
)
->
insert
([
'nome'
=>
'Voluntário'
,
]);
DB
::
table
(
'funcao_participantes'
)
->
insert
([
'nome'
=>
'Pesquisador'
,
]);
}
}
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