update order document

dev
Aji Kamaludin 1 year ago
parent e07fc8bd1f
commit 1033c09845
No known key found for this signature in database
GPG Key ID: 19058F67F0083AD3

@ -7,6 +7,7 @@ This is a project about web application to monitor and send email notification f
<a href="https://trakteer.id/ajikamaludin" target="_blank"><img id="wse-buttons-preview" src="https://cdn.trakteer.id/images/embed/trbtn-blue-2.png" height="40" style="border:0px;height:40px;" alt="Trakteer Saya"></a> <a href="https://trakteer.id/ajikamaludin" target="_blank"><img id="wse-buttons-preview" src="https://cdn.trakteer.id/images/embed/trbtn-blue-2.png" height="40" style="border:0px;height:40px;" alt="Trakteer Saya"></a>
## What is flavor ? ## What is flavor ?
- this is another version from this application request from someone im changes many this - this is another version from this application request from someone im changes many this
from here i think i get a good template for another project that i can work for. from here i think i get a good template for another project that i can work for.
@ -42,3 +43,9 @@ $ npm run build
![](1.png?raw=true) ![](1.png?raw=true)
![](2.png?raw=true) ![](2.png?raw=true)
## Rsync
```bash
rsync -arP -e 'ssh -p 222' --exclude=node_modules --exclude=.git --exclude=.env --exclude=storage --exclude=public/hot . pi@ajikamaludin.id:/home/pi/projects/monitor-doc
```

@ -33,7 +33,7 @@ class DocumentController extends Controller
if ($request->has('sortBy') && $request->has('sortRule')) { if ($request->has('sortBy') && $request->has('sortRule')) {
$query->orderBy($request->sortBy, $request->sortRule); $query->orderBy($request->sortBy, $request->sortRule);
} else { } else {
$query->orderBy('created_at', 'desc'); $query->orderBy('updated_at', 'desc');
} }
if ($request->q != null || $request->q != '') { if ($request->q != null || $request->q != '') {
@ -260,7 +260,8 @@ class DocumentController extends Controller
return $this->print($collections); return $this->print($collections);
} }
private function print($collections) { private function print($collections)
{
return view('exports.documents', ['collections' => $collections->toArray()]); return view('exports.documents', ['collections' => $collections->toArray()]);
} }

Loading…
Cancel
Save