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
b530f5ed
"resources/vscode:/vscode.git/clone" did not exist on "cee8138ef37132a87b95ca13668901c18061c8aa"
Commit
b530f5ed
authored
Jun 06, 2022
by
Guilherme Silva
Browse files
Ordenação da listagem de editais para o coordenador
parent
750e34e1
Changes
2
Show whitespace changes
Inline
Side-by-side
app/Http/Controllers/CoordenadorComissaoController.php
View file @
b530f5ed
...
...
@@ -30,7 +30,7 @@ class CoordenadorComissaoController extends Controller
public
function
editais
(){
$coordenador
=
CoordenadorComissao
::
with
(
'user'
)
->
where
(
'user_id'
,
Auth
()
->
user
()
->
id
)
->
first
();
$eventos
=
Evento
::
where
(
'coordenadorId'
,
$coordenador
->
id
)
->
get
();
$eventos
=
Evento
::
where
(
'coordenadorId'
,
$coordenador
->
id
)
->
orderBy
(
'created_at'
,
'DESC'
)
->
get
();
//dd($eventos);
return
view
(
'coordenadorComissao.editais'
,
[
'eventos'
=>
$eventos
]);
...
...
app/Http/Controllers/HomeController.php
View file @
b530f5ed
...
...
@@ -30,7 +30,7 @@ class HomeController extends Controller
$eventos
=
\
App\Evento
::
all
();
if
(
Auth
::
user
()
->
administradors
!=
null
){
$eventos
=
Evento
::
orderBy
(
'
nome
'
)
->
get
();
$eventos
=
Evento
::
orderBy
(
'
created_at'
,
'DESC
'
)
->
get
();
return
view
(
'administrador.editais'
)
->
with
([
'eventos'
=>
$eventos
]);
}
...
...
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