Commit d7e525b1 authored by Carlos André's avatar Carlos André
Browse files

adicionar pesquisador as funções do participante

parent 0d84ba50
...@@ -45,7 +45,7 @@ class TrabalhoController extends Controller ...@@ -45,7 +45,7 @@ class TrabalhoController extends Controller
{ {
$edital = Evento::find($id); $edital = Evento::find($id);
$grandeAreas = GrandeArea::orderBy('nome')->get(); $grandeAreas = GrandeArea::orderBy('nome')->get();
$funcaoParticipantes = FuncaoParticipantes::all(); $funcaoParticipantes = FuncaoParticipantes::orderBy('nome')->get();
$proponente = Proponente::where('user_id', Auth::user()->id)->first(); $proponente = Proponente::where('user_id', Auth::user()->id)->first();
if($proponente == null){ if($proponente == null){
......
...@@ -34,6 +34,11 @@ class FuncaoParticipanteSeeder extends Seeder ...@@ -34,6 +34,11 @@ class FuncaoParticipanteSeeder extends Seeder
DB::table('funcao_participantes')->insert([ DB::table('funcao_participantes')->insert([
'nome'=>'Voluntário', 'nome'=>'Voluntário',
]);
DB::table('funcao_participantes')->insert([
'nome'=>'Pesquisador',
]); ]);
} }
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment