Sort admin entries screen by id descending
This commit is contained in:
parent
38033a9ac8
commit
5be092d2ed
|
|
@ -35,7 +35,7 @@ class EntryController extends Controller
|
|||
$schools = School::orderBy('name')->get();
|
||||
|
||||
$entries = Entry::with(['student.school', 'audition']);
|
||||
$entries->orderBy('updated_at', 'DESC');
|
||||
$entries->orderBy('id', 'DESC');
|
||||
if ($filters) {
|
||||
if ($filters['id']) {
|
||||
$entries->where('id', $filters['id']);
|
||||
|
|
|
|||
Loading…
Reference in New Issue