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
e23b8acb
Commit
e23b8acb
authored
May 06, 2021
by
Carlos André
Browse files
ajustado o banco e os dados dos participantes
parent
a0427e97
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
app/Http/Controllers/TrabalhoController.php
View file @
e23b8acb
...
@@ -33,6 +33,7 @@ use App\Mail\SubmissaoTrabalho;
...
@@ -33,6 +33,7 @@ use App\Mail\SubmissaoTrabalho;
use
App\Mail\EventoCriado
;
use
App\Mail\EventoCriado
;
use
Illuminate\Support\Facades\Validator
;
use
Illuminate\Support\Facades\Validator
;
use
Illuminate\Validation\Rule
;
use
Illuminate\Validation\Rule
;
use
App\OutrasInfoParticipante
;
class
TrabalhoController
extends
Controller
class
TrabalhoController
extends
Controller
{
{
...
@@ -61,7 +62,8 @@ class TrabalhoController extends Controller
...
@@ -61,7 +62,8 @@ class TrabalhoController extends Controller
'edital'
=>
$edital
,
'edital'
=>
$edital
,
'grandeAreas'
=>
$grandeAreas
,
'grandeAreas'
=>
$grandeAreas
,
'funcaoParticipantes'
=>
$funcaoParticipantes
,
'funcaoParticipantes'
=>
$funcaoParticipantes
,
'rascunho'
=>
$rascunho
'rascunho'
=>
$rascunho
,
'enum_turno'
=>
OutrasInfoParticipante
::
ENUM_TURNO
]);
]);
}
}
...
...
app/OutrasInfoParticipante.php
0 → 100644
View file @
e23b8acb
<?php
namespace
App
;
use
Illuminate\Database\Eloquent\Model
;
class
OutrasInfoParticipante
extends
Model
{
protected
$fillable
=
[
'name'
,
'user_id'
,
'trabalho_id'
,
'participante_id'
];
public
const
ENUM_TURNO
=
[
'Matutino'
,
'Vespertino'
,
'Noturno'
,
'Integral'
];
}
database/migrations/2021_05_05_161225_create_outras_info_participantes_table.php
0 → 100644
View file @
e23b8acb
<?php
use
Illuminate\Database\Migrations\Migration
;
use
Illuminate\Database\Schema\Blueprint
;
use
Illuminate\Support\Facades\Schema
;
use
App\OutrasInfoParticipante
;
class
CreateOutrasInfoParticipantesTable
extends
Migration
{
/**
* Run the migrations.
*
* @return void
*/
public
function
up
()
{
Schema
::
create
(
'outras_info_participantes'
,
function
(
Blueprint
$table
)
{
$table
->
bigIncrements
(
'id'
);
$table
->
string
(
"rg"
);
$table
->
date
(
"data_de_nascimento"
);
$table
->
string
(
"curso"
);
$table
->
enum
(
"turno"
,
OutrasInfoParticipante
::
ENUM_TURNO
)
->
nullable
(
true
);
$table
->
integer
(
"ordem_prioridade"
)
->
nullable
(
true
);
$table
->
string
(
"periodo_atual"
)
->
nullable
(
true
);
$table
->
string
(
"total_periodos"
)
->
nullable
(
true
);
$table
->
double
(
"media_do_curso"
,
3
,
2
)
->
nullable
(
true
);
$table
->
timestamps
();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public
function
down
()
{
Schema
::
dropIfExists
(
'outras_info_participantes'
);
}
}
database/migrations/2021_05_05_163601_add_column_participante.php
0 → 100644
View file @
e23b8acb
<?php
use
Illuminate\Database\Migrations\Migration
;
use
Illuminate\Database\Schema\Blueprint
;
use
Illuminate\Support\Facades\Schema
;
class
AddColumnParticipante
extends
Migration
{
/**
* Run the migrations.
*
* @return void
*/
public
function
up
()
{
Schema
::
table
(
'participantes'
,
function
(
Blueprint
$table
)
{
$table
->
unsignedBigInteger
(
'outras_info_participante_id'
)
->
nullable
(
true
);
$table
->
foreign
(
'outras_info_participante_id'
)
->
references
(
'id'
)
->
on
(
'outras_info_participantes'
);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public
function
down
()
{
//
}
}
resources/views/evento/submeterTrabalho.blade.php
View file @
e23b8acb
This diff is collapsed.
Click to expand it.
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