Order list view by title and added different dash icon

This commit is contained in:
KodeStar
2018-02-03 19:55:37 +00:00
parent 5f8ce757ed
commit 1b4b6cb966
2 changed files with 2 additions and 2 deletions

View File

@@ -94,7 +94,7 @@ class ItemController extends Controller
{
$trash = (bool)$request->input('trash');
$data['apps'] = Item::all();
$data['apps'] = Item::orderBy('title', 'asc')->get();
$data['trash'] = Item::onlyTrashed()->get();
if($trash) {
return view('items.trash', $data);