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
db3a2c99
Commit
db3a2c99
authored
Jan 30, 2022
by
Guilherme Silva
Browse files
Adicionado tipo de bolsa ao discente
parent
38376098
Changes
2
Show whitespace changes
Inline
Side-by-side
app/Participante.php
View file @
db3a2c99
...
@@ -10,7 +10,9 @@ class Participante extends Model
...
@@ -10,7 +10,9 @@ class Participante extends Model
use
SoftDeletes
;
use
SoftDeletes
;
public
const
ENUM_TURNO
=
[
'Matutino'
,
'Vespertino'
,
'Noturno'
,
'Integral'
];
public
const
ENUM_TURNO
=
[
'Matutino'
,
'Vespertino'
,
'Noturno'
,
'Integral'
];
protected
$fillable
=
[
'rg'
,
'data_de_nascimento'
,
'curso'
,
'participante_id'
,
'turno'
,
'ordem_prioridade'
,
'periodo_atual'
,
'total_periodos'
,
'media_do_curso'
,
'linkLattes'
];
protected
$fillable
=
[
'rg'
,
'data_de_nascimento'
,
'curso'
,
'participante_id'
,
'turno'
,
'ordem_prioridade'
,
'periodo_atual'
,
'total_periodos'
,
'media_do_curso'
,
'linkLattes'
,
'tipoBolsa'
];
public
function
user
(){
public
function
user
(){
return
$this
->
belongsTo
(
'App\User'
);
return
$this
->
belongsTo
(
'App\User'
);
...
...
database/migrations/2021_11_16_101654_alter_table_participantes3.php
0 → 100644
View file @
db3a2c99
<?php
use
Illuminate\Database\Migrations\Migration
;
use
Illuminate\Database\Schema\Blueprint
;
use
Illuminate\Support\Facades\Schema
;
class
AlterTableParticipantes3
extends
Migration
{
/**
* Run the migrations.
*
* @return void
*/
public
function
up
()
{
Schema
::
table
(
'participantes'
,
function
(
Blueprint
$table
)
{
$table
->
string
(
'tipoBolsa'
)
->
nullable
();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public
function
down
()
{
Schema
::
table
(
'participantes'
,
function
(
Blueprint
$table
)
{
$table
->
dropColumn
(
'tipoBolsa'
);
});
}
}
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