如何在Voyager存储中按创建日期排序文件

huangapple go评论98阅读模式
英文:

How to sort files by created date in Voyager Storage

问题

如标题所述...

我如何在使用Laravel的Voyager存储中按创建日期对文件进行排序?

目前它按最旧的文件排序,最新的文件显示在最后,但我想要让最新的文件显示在最前面。

我已经查阅了Voyager文档,但未找到有用的信息。

我正在使用Laravel 5.6和Voyager 1.1。

英文:

As stated in the title...

How can I sort files by created date in Voyager Storage using Laravel?

Currently it is sorted by oldest files and newest last, but I want to make it so that newest files are shown first.

I have looked through the Voyager documentation but could not find anything useful.

I am using Laravel 5.6 and Voyager 1.1.

答案1

得分: 0

看起来你必须查看DataType模型,browse.blade视图模板,和VoyagerBaseControlller

希望我的回答能够帮助。
祝好!

英文:

It seems you must look at the DataType model, browse.blade view template, and VoyagerBaseControlller.

Hope my answer could help.
Cheers.

huangapple
  • 本文由 发表于 2020年1月7日 02:02:35
  • 转载请务必保留本文链接:https://go.coder-hub.com/59616830.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定