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
db738888
Commit
db738888
authored
May 19, 2022
by
Guilherme Silva
Browse files
Criação de rotas e seeders básicos para area tematica
parent
b21a69af
Changes
3
Hide whitespace changes
Inline
Side-by-side
database/seeds/AreaTematicaSeeder.php
0 → 100644
View file @
db738888
<?php
use
Illuminate\Database\Seeder
;
class
AreaTematicaSeeder
extends
Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public
function
run
()
{
DB
::
table
(
'area_tematicas'
)
->
insert
([
'nome'
=>
'Erradicação da Pobreza'
]);
DB
::
table
(
'area_tematicas'
)
->
insert
([
'nome'
=>
'Fome zero e agricultura sustentável'
]);
DB
::
table
(
'area_tematicas'
)
->
insert
([
'nome'
=>
'Saúde e bem-estar'
]);
DB
::
table
(
'area_tematicas'
)
->
insert
([
'nome'
=>
'Educação de qualidade'
]);
DB
::
table
(
'area_tematicas'
)
->
insert
([
'nome'
=>
'Igualdade de gênero'
]);
}
}
database/seeds/DatabaseSeeder.php
View file @
db738888
...
...
@@ -25,6 +25,7 @@ class DatabaseSeeder extends Seeder
$this
->
call
(
NaturezaSeeder
::
class
);
$this
->
call
(
RecomendacaoSeeder
::
class
);
$this
->
call
(
AvaliadorSeeder
::
class
);
$this
->
call
(
AreaTematicaSeeder
::
class
);
// $this->call(UsersTableSeeder::class);
...
...
routes/web.php
View file @
db738888
...
...
@@ -57,6 +57,13 @@ Route::group(['middleware' => ['isTemp', 'auth', 'verified']], function(){
Route
::
get
(
'/trabalho/planos/avaliacoes/index'
,
'AvaliacaoRelatorioController@index'
)
->
name
(
'planos.avaliacoes.index'
);
Route
::
post
(
'/trabalho/planos/avaliacoes/criar'
,
'AvaliacaoRelatorioController@criar'
)
->
name
(
'planos.avaliacoesUser.criar'
);
Route
::
prefix
(
'areaTematica'
)
->
name
(
'areaTematica.'
)
->
group
(
function
()
{
Route
::
get
(
'/editar/{id}'
,
'AreaTematicaController@edit'
)
->
name
(
'edit'
)
->
middleware
(
'checkAdministrador'
);
Route
::
post
(
'/atualizar/{id}'
,
'AreaTematicaController@update'
)
->
name
(
'atualizar'
)
->
middleware
(
'checkAdministrador'
);
Route
::
post
(
'/excluir/{id}'
,
'AreaTematicaController@destroy'
)
->
name
(
'deletar'
)
->
middleware
(
'checkAdministrador'
);
Route
::
post
(
'/salvar'
,
'AreaTematicaController@store'
)
->
name
(
'salvar'
)
->
middleware
(
'checkAdministrador'
);
Route
::
get
(
'/nova'
,
'AreaTematicaController@create'
)
->
name
(
'criar'
)
->
middleware
(
'checkAdministrador'
);
});
//######### Rotas Administrador #################################
...
...
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