Improve attachment list.

This commit is contained in:
James Cole
2018-04-28 06:53:37 +02:00
parent d03de52735
commit 7b39828980
2 changed files with 21 additions and 17 deletions

View File

@@ -152,7 +152,7 @@ class AttachmentController extends Controller
*/
public function index()
{
$set = $this->repository->get();
$set = $this->repository->get()->reverse();
$set = $set->each(
function (Attachment $attachment) {
$attachment->file_exists = $this->repository->exists($attachment);