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
750e34e1
Commit
750e34e1
authored
Jun 06, 2022
by
Guilherme Silva
Browse files
Ordenação da listagem dos editais
parent
f4f1b714
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/Http/Controllers/AdministradorController.php
View file @
750e34e1
...
...
@@ -57,7 +57,7 @@ class AdministradorController extends Controller
public
function
editais
(){
//$admin = Administrador::with('user')->where('user_id', Auth()->user()->id)->first();
//$eventos = Evento::where('coordenadorId',$admin->id )->get();
$eventos
=
Evento
::
all
()
->
sortBy
(
'nome
'
);
$eventos
=
Evento
::
all
()
->
sortBy
Desc
(
'created_at
'
);
return
view
(
'administrador.editais'
,
[
'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