Commit 750e34e1 authored by Guilherme Silva's avatar Guilherme Silva
Browse files

Ordenação da listagem dos editais

parent f4f1b714
......@@ -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()->sortByDesc('created_at');
return view('administrador.editais', ['eventos'=> $eventos]);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment