From: soufiane Date: Tue, 16 Sep 2025 16:04:20 +0000 (+0200) Subject: wip #7718 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=19d4ed42a97eb558dbb3b9ffe7eddb501e1aa085;p=psq.git wip #7718 --- diff --git a/app/Http/Controllers/Controller.php b/app/Http/Controllers/Controller.php index c8bf54b..969b4a9 100644 --- a/app/Http/Controllers/Controller.php +++ b/app/Http/Controllers/Controller.php @@ -81,6 +81,6 @@ class Controller extends BaseController $refs = array_map(function($hits) { return $hits['document']['reference']; }, $typeSenseResults['hits']); $pdfFile = new PdfFile(); - return $pdfFile->whereIn('slug', $refs)->get()->toArray(); + return $pdfFile->whereIn('slug', $refs)->orderBy('created_at', 'desc')->get()->toArray(); } } diff --git a/resources/js/components/FileSearch/FileInstantSearch.vue b/resources/js/components/FileSearch/FileInstantSearch.vue index 64f2768..498538f 100644 --- a/resources/js/components/FileSearch/FileInstantSearch.vue +++ b/resources/js/components/FileSearch/FileInstantSearch.vue @@ -16,15 +16,15 @@
diff --git a/resources/views/archives/index.blade.php b/resources/views/archives/index.blade.php index 6d44166..4f8bcd8 100644 --- a/resources/views/archives/index.blade.php +++ b/resources/views/archives/index.blade.php @@ -1,36 +1,12 @@ @extends('layouts.v2.app') -@section('title') -
-
-

Nos archives

-
-
- Lancer la recherche -
- -
-
-
-@endsection @section('main') - {{--
-
- @foreach($all_pdf as $key => $pdf) -
- - -
- @endforeach -
-
--}} - + @endsection